contrib/import-checker.py
changeset 26166 bb6936bec727
parent 26062 7154a4a08b96
child 26221 ae65b1b4cb46
--- a/contrib/import-checker.py	Tue Sep 01 21:37:51 2015 +0200
+++ b/contrib/import-checker.py	Wed Sep 02 16:07:35 2015 -0400
@@ -200,7 +200,10 @@
             for name in files:
                 if name == '__init__.py':
                     continue
-                if not (name.endswith('.py') or name.endswith('.so')
+                if not (name.endswith('.py')
+                        or name.endswith('.so')
+                        or name.endswith('.pyc')
+                        or name.endswith('.pyo')
                         or name.endswith('.pyd')):
                     continue
                 full_path = os.path.join(top, name)