Don't specify globals as a kwarg; only in 2.5+

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
James Vega 2009-03-22 13:47:42 -04:00
parent 13715a0ca3
commit 6b6861f884

View File

@ -40,7 +40,8 @@ def universalImport(*names):
f = sys._getframe(1) f = sys._getframe(1)
for name in names: for name in names:
try: 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: except ImportError:
continue continue
else: else: