contrib/import-checker.py
changeset 26221 ae65b1b4cb46
parent 26166 bb6936bec727
child 26781 1aee2ab0f902
--- a/contrib/import-checker.py	Sat Aug 22 18:43:24 2015 -0700
+++ b/contrib/import-checker.py	Thu Sep 10 09:52:17 2015 -0400
@@ -200,11 +200,7 @@
             for name in files:
                 if name == '__init__.py':
                     continue
-                if not (name.endswith('.py')
-                        or name.endswith('.so')
-                        or name.endswith('.pyc')
-                        or name.endswith('.pyo')
-                        or name.endswith('.pyd')):
+                if not name.endswith(('.py', '.so', '.pyc', '.pyo', '.pyd')):
                     continue
                 full_path = os.path.join(top, name)
                 rel_path = full_path[len(libpath) + 1:]