summaryrefslogtreecommitdiffstats
path: root/Lib/xml/parsers
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-15 15:25:23 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-15 15:25:23 (GMT)
commit91d2a3fb0e248872bcb809070257f3036ff0eadb (patch)
tree89c41e0c135cebbd8c0847193adbfe3b4f54cc94 /Lib/xml/parsers
parent279b56d9a7239920dc5f190bc2ebc91b6605c796 (diff)
downloadcpython-91d2a3fb0e248872bcb809070257f3036ff0eadb.zip
cpython-91d2a3fb0e248872bcb809070257f3036ff0eadb.tar.gz
cpython-91d2a3fb0e248872bcb809070257f3036ff0eadb.tar.bz2
#5355 followup: add unit test for new dictionaries, and provide submodules from xml.parsers.expat as advertised.
Diffstat (limited to 'Lib/xml/parsers')
-rw-r--r--Lib/xml/parsers/expat.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/xml/parsers/expat.py b/Lib/xml/parsers/expat.py
index 11359a0..a805b82 100644
--- a/Lib/xml/parsers/expat.py
+++ b/Lib/xml/parsers/expat.py
@@ -1,4 +1,10 @@
"""Interface to the Expat non-validating XML parser."""
__version__ = '$Revision$'
+import sys
+
from pyexpat import *
+
+# provide pyexpat submodules as xml.parsers.expat submodules
+sys.modules['xml.parsers.expat.model'] = model
+sys.modules['xml.parsers.expat.errors'] = errors