Merge pull request #79 from dansan/master
fix Python 2 import (fix #78)
This commit is contained in:
commit
008c17fcd7
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user