contrib/check-py3-compat.py
changeset 41554 01417ca7f2e2
parent 32421 778dc37ce683
child 41555 ba7eaff26474
--- a/contrib/check-py3-compat.py	Mon Feb 04 14:22:50 2019 -0800
+++ b/contrib/check-py3-compat.py	Mon Feb 04 14:25:00 2019 -0800
@@ -45,7 +45,7 @@
         content = fh.read()
 
     try:
-        ast.parse(content)
+        ast.parse(content, filename=f)
     except SyntaxError as e:
         print('%s: invalid syntax: %s' % (f, e))
         return