mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 14:49:21 +01:00
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:
parent
13715a0ca3
commit
6b6861f884
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user