contrib/import-checker.py
changeset 29211 b42c2a66a698
parent 29208 cba8bc11ed10
child 29234 393aef802535
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',