diff contrib/import-checker.py @ 29211:b42c2a66a698

py3: make contrib/import-checker.py get along with itself Indent these imports to disable the rule of "not lexically sorted."
author Yuya Nishihara <yuya@tcha.org>
date Sat, 14 May 2016 14:33:45 +0900
parents cba8bc11ed10
children 393aef802535
line wrap: on
line diff
--- 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 = (