Show More
@@ -11,10 +11,7 b' import sys' | |||||
11 | # to work when run from a virtualenv. The modules were chosen empirically |
|
11 | # to work when run from a virtualenv. The modules were chosen empirically | |
12 | # so that the return value matches the return value without virtualenv. |
|
12 | # so that the return value matches the return value without virtualenv. | |
13 | if True: # disable lexical sorting checks |
|
13 | if True: # disable lexical sorting checks | |
14 | try: |
|
14 | import argparse | |
15 | import BaseHTTPServer as basehttpserver |
|
|||
16 | except ImportError: |
|
|||
17 | basehttpserver = None |
|
|||
18 | import zlib |
|
15 | import zlib | |
19 |
|
16 | |||
20 | import testparseutil |
|
17 | import testparseutil | |
@@ -244,7 +241,7 b' def list_stdlib_modules():' | |||||
244 | stdlib_prefixes = {sys.prefix, sys.exec_prefix} |
|
241 | stdlib_prefixes = {sys.prefix, sys.exec_prefix} | |
245 | # We need to supplement the list of prefixes for the search to work |
|
242 | # We need to supplement the list of prefixes for the search to work | |
246 | # when run from within a virtualenv. |
|
243 | # when run from within a virtualenv. | |
247 |
for mod in ( |
|
244 | for mod in (argparse, zlib): | |
248 | if mod is None: |
|
245 | if mod is None: | |
249 | continue |
|
246 | continue | |
250 | try: |
|
247 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now