Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
29210:984c4d23d39c | 29211:b42c2a66a698 |
---|---|
9 import sys | 9 import sys |
10 | 10 |
11 # Import a minimal set of stdlib modules needed for list_stdlib_modules() | 11 # Import a minimal set of stdlib modules needed for list_stdlib_modules() |
12 # to work when run from a virtualenv. The modules were chosen empirically | 12 # to work when run from a virtualenv. The modules were chosen empirically |
13 # so that the return value matches the return value without virtualenv. | 13 # so that the return value matches the return value without virtualenv. |
14 import BaseHTTPServer | 14 if True: # disable lexical sorting checks |
15 import zlib | 15 import BaseHTTPServer |
16 import zlib | |
16 | 17 |
17 # Whitelist of modules that symbols can be directly imported from. | 18 # Whitelist of modules that symbols can be directly imported from. |
18 allowsymbolimports = ( | 19 allowsymbolimports = ( |
19 '__future__', | 20 '__future__', |
20 'mercurial.hgweb.common', | 21 'mercurial.hgweb.common', |