py3: make contrib/import-checker.py get along with itself
authorYuya Nishihara <yuya@tcha.org>
Sat, 14 May 2016 14:33:45 +0900
changeset 29211 b42c2a66a698
parent 29210 984c4d23d39c
child 29212 8005e0e0eb33
py3: make contrib/import-checker.py get along with itself Indent these imports to disable the rule of "not lexically sorted."
contrib/import-checker.py
--- a/contrib/import-checker.py	Sat May 14 14:23:04 2016 +0900
+++ b/contrib/import-checker.py	Sat May 14 14:33:45 2016 +0900
@@ -11,8 +11,9 @@
 # Import a minimal set of stdlib modules needed for list_stdlib_modules()
 # to work when run from a virtualenv.  The modules were chosen empirically
 # so that the return value matches the return value without virtualenv.
-import BaseHTTPServer
-import zlib
+if True: # disable lexical sorting checks
+    import BaseHTTPServer
+    import zlib
 
 # Whitelist of modules that symbols can be directly imported from.
 allowsymbolimports = (