From: Brian Dolbec Date: Sat, 6 Oct 2012 22:13:49 +0000 (-0700) Subject: py 3.3 fix for bug 436934. Change the level parameter for the __import__() call. X-Git-Tag: gentoolkit-0.3.0.7~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=53eadf79c9bd138cc01551a67ca95b28679c2f46;p=gentoolkit.git py 3.3 fix for bug 436934. Change the level parameter for the __import__() call. --- diff --git a/pym/gentoolkit/enalyze/__init__.py b/pym/gentoolkit/enalyze/__init__.py index b43a82c..3e07d77 100644 --- a/pym/gentoolkit/enalyze/__init__.py +++ b/pym/gentoolkit/enalyze/__init__.py @@ -115,7 +115,7 @@ def main(): try: loaded_module = __import__( - expanded_module_name, globals(), locals(), [], -1 + expanded_module_name, globals(), locals(), [], 1 ) loaded_module.main(module_args) except portage.exception.AmbiguousPackageName as err: diff --git a/pym/gentoolkit/equery/__init__.py b/pym/gentoolkit/equery/__init__.py index 65f3ec1..a844f51 100644 --- a/pym/gentoolkit/equery/__init__.py +++ b/pym/gentoolkit/equery/__init__.py @@ -349,7 +349,7 @@ def main(argv): try: loaded_module = __import__( - expanded_module_name, globals(), locals(), [], -1 + expanded_module_name, globals(), locals(), [], 1 ) loaded_module.main(module_args) except portage.exception.AmbiguousPackageName as err: