equal
deleted
inserted
replaced
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', |