summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-07-31 08:54:55 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-07-31 08:54:55 (GMT)
commit6cd441d129ca9b3ba4d13af5494303edbcd02b22 (patch)
tree593aa83b72266dbc6e6f894a377fe84c56b282f4 /Lib/xml
parentbbe500e5d360ff9cf0615eb1d369b2f63a1700e2 (diff)
downloadcpython-6cd441d129ca9b3ba4d13af5494303edbcd02b22.zip
cpython-6cd441d129ca9b3ba4d13af5494303edbcd02b22.tar.gz
cpython-6cd441d129ca9b3ba4d13af5494303edbcd02b22.tar.bz2
Add dead imports of modules that are "magically" imported.
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/sax/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/xml/sax/__init__.py b/Lib/xml/sax/__init__.py
index 0375e5d..f119d84 100644
--- a/Lib/xml/sax/__init__.py
+++ b/Lib/xml/sax/__init__.py
@@ -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"], ",")