[Python-checkins] CVS: python/dist/src/Lib/xml/sax __init__.py,1.14,1.15
Martin v. L?wis
loewis@users.sourceforge.net
Tue, 31 Jul 2001 01:54:57 -0700
Update of /cvsroot/python/python/dist/src/Lib/xml/sax
In directory usw-pr-cvs1:/tmp/cvs-serv12106/xml/sax
Modified Files:
__init__.py
Log Message:
Add dead imports of modules that are "magically" imported.
Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xml/sax/__init__.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** __init__.py 2000/10/23 18:09:50 1.14
--- __init__.py 2001/07/31 08:54:55 1.15
***************
*** 54,57 ****
--- 54,62 ----
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"):