contrib/import-checker.py
changeset 28700 35ad5bcdeb7e
parent 28400 a84fc98a8af5
child 28702 e44f671018e3
--- a/contrib/import-checker.py	Wed Mar 30 08:02:34 2016 +0000
+++ b/contrib/import-checker.py	Wed Mar 30 07:24:51 2016 +0000
@@ -200,10 +200,8 @@
             stdlib_prefixes.add(dirname)
     for libpath in sys.path:
         # We want to walk everything in sys.path that starts with
-        # something in stdlib_prefixes. check-code suppressed because
-        # the ast module used by this script implies the availability
-        # of any().
-        if not any(libpath.startswith(p) for p in stdlib_prefixes): # no-py24
+        # something in stdlib_prefixes.
+        if not any(libpath.startswith(p) for p in stdlib_prefixes):
             continue
         for top, dirs, files in os.walk(libpath):
             for i, d in reversed(list(enumerate(dirs))):