grozin 15/02/18 18:32:34 Added: bpython-0.14.patch Log: Upstream patch to fix crash on startup; dropping bpython-desktop.patch (#444646) (Portage version: 2.2.17/cvs/Linux i686, signed Manifest commit with key 0x3AFFCE974D34BD8C!)
Revision Changes Path 1.1 dev-python/bpython/files/bpython-0.14.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bpython/files/bpython-0.14.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bpython/files/bpython-0.14.patch?rev=1.1&content-type=text/plain Index: bpython-0.14.patch =================================================================== 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,
