Commits

Philip Jenvey committed 8507976

requires an explicit relative import on py3k

Comments (0)

Files changed (1)

lib_pypy/ctypes_config_cache/dumpcache.py

 # XXX relative import, should be removed together with
 # XXX the relative imports done e.g. by lib_pypy/pypy_test/test_hashlib
 mod = __import__("_%s_%%s_" %% (cpumodel,),
-                 globals(), locals(), ["*"])
+                 globals(), locals(), ["*"], level=1)
 globals().update(mod.__dict__)\
 ''' % (basename,)
     g.close()