dev-python/bpython: cleaning old

Package-Manager: portage-2.3.0
This commit is contained in:
Andrey Grozin
2016-10-12 21:10:04 +07:00
parent ae9cf0227e
commit 900c6bed73
6 changed files with 0 additions and 258 deletions

View File

@@ -1,14 +0,0 @@
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,