summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/bpython/files/bpython-0.14.patch')
-rw-r--r--dev-python/bpython/files/bpython-0.14.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-python/bpython/files/bpython-0.14.patch b/dev-python/bpython/files/bpython-0.14.patch
new file mode 100644
index 000000000000..00b8e5a420d0
--- /dev/null
+++ b/dev-python/bpython/files/bpython-0.14.patch
@@ -0,0 +1,14 @@
+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,