Mercurial > hg
changeset 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 | 984c4d23d39c |
children | 8005e0e0eb33 |
files | contrib/import-checker.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
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 = (