Kaydet (Commit) 6cd441d1 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Add dead imports of modules that are "magically" imported.

üst bbe500e5
......@@ -575,6 +575,12 @@ def make_encoding_map(decoding_map):
m[v] = None
return m
# Tell modulefinder that using codecs probably needs the encodings
# package
_false = 0
if _false:
import encodings
### Tests
if __name__ == '__main__':
......
......@@ -53,6 +53,11 @@ def parseString(string, handler, errorHandler=ErrorHandler()):
default_parser_list = ["xml.sax.expatreader"]
# tell modulefinder that importing sax potentially imports expatreader
_false = 0
if _false:
import xml.sax.expatreader
import os, string, sys
if os.environ.has_key("PY_SAX_PARSER"):
default_parser_list = string.split(os.environ["PY_SAX_PARSER"], ",")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment