# HG changeset patch # User Yuya Nishihara # Date 1463204025 -32400 # Node ID b42c2a66a698983776b0025dc5c1437382dcd155 # Parent 984c4d23d39c2b94ba00d1ac3bd6aa8b1073f0c2 py3: make contrib/import-checker.py get along with itself Indent these imports to disable the rule of "not lexically sorted." diff -r 984c4d23d39c -r b42c2a66a698 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 = (