contrib/check-py3-compat.py
changeset 30093 68010ed1636d
parent 29763 8faac092bb0c
child 30094 f701fffd21d8
--- a/contrib/check-py3-compat.py	Sat Oct 08 19:16:50 2016 +0200
+++ b/contrib/check-py3-compat.py	Sun Oct 09 08:31:39 2016 +0200
@@ -58,7 +58,7 @@
         name = f.replace('/', '.')[:-3].replace('.pure.', '.')
         with open(f, 'r') as fh:
             try:
-                imp.load_module(name, fh, '', ('py', 'r', imp.PY_SOURCE))
+                imp.load_module(name, fh, f, ('py', 'r', imp.PY_SOURCE))
             except Exception as e:
                 exc_type, exc_value, tb = sys.exc_info()
                 # We walk the stack and ignore frames from our custom importer,