From 53eadf79c9bd138cc01551a67ca95b28679c2f46 Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Sat, 6 Oct 2012 15:13:49 -0700 Subject: [PATCH] py 3.3 fix for bug 436934. Change the level parameter for the __import__() call. --- pym/gentoolkit/enalyze/__init__.py | 2 +- pym/gentoolkit/equery/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: -- 2.26.2