blob: 00b8e5a420d033df40371f5c7889ea142acbb757 [file] [log] [blame]
diff -r -U2 bpython-0.14.orig/bpython/curtsiesfrontend/repl.py bpython-0.14/bpython/curtsiesfrontend/repl.py
--- bpython-0.14.orig/bpython/curtsiesfrontend/repl.py 2015-02-17 05:07:38.000000000 +0600
+++ bpython-0.14/bpython/curtsiesfrontend/repl.py 2015-02-19 00:09:13.758932344 +0600
@@ -420,7 +420,9 @@
# for reading modules if they fail to load
old_module_locations = {}
+ default_level = 0 if py3 else -1
@functools.wraps(self.orig_import)
- def new_import(name, globals={}, locals={}, fromlist=[], level=-1):
+ def new_import(name, globals={}, locals={}, fromlist=[],
+ level=default_level):
try:
m = self.orig_import(name, globals=globals, locals=locals,