Merge pull request #79 from dansan/master

fix Python 2 import (fix #78)
This commit is contained in:
Qix 2019-05-08 09:41:17 +02:00 committed by GitHub
commit 008c17fcd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ except ImportError:
def load_module(name, filepath):
with open(filepath, 'r') as fd:
imp.load_module('a_b', f, path, ('.py', 'U', imp.PY_SOURCE))
imp.load_module('a_b', fd, filepath, ('.py', 'U', imp.PY_SOURCE))
from better_exceptions import interact, hook
hook()