From 6b6861f8845746baa111c12cdbba62524689b81f Mon Sep 17 00:00:00 2001 From: James Vega Date: Sun, 22 Mar 2009 13:47:42 -0400 Subject: [PATCH] Don't specify globals as a kwarg; only in 2.5+ Signed-off-by: James Vega --- src/utils/python.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/python.py b/src/utils/python.py index 70571fe0b..15839870e 100644 --- a/src/utils/python.py +++ b/src/utils/python.py @@ -40,7 +40,8 @@ def universalImport(*names): f = sys._getframe(1) for name in names: try: - ret = __import__(name, globals=f.f_globals) + # __import__ didn't gain keyword arguments until 2.5 + ret = __import__(name, f.f_globals) except ImportError: continue else: