mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +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)
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user