summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2012-02-16 22:28:35 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2012-02-16 22:28:35 (GMT)
commit1639505c383a1c8b46ff6f2a5b9071f26ad43ece (patch)
treeed53c373225afdf1cdbf4c2874c97445f8704759 /Lib/xml
parente59a306081d8f34814b91dc9e911beac7271c452 (diff)
downloadcpython-1639505c383a1c8b46ff6f2a5b9071f26ad43ece.zip
cpython-1639505c383a1c8b46ff6f2a5b9071f26ad43ece.tar.gz
cpython-1639505c383a1c8b46ff6f2a5b9071f26ad43ece.tar.bz2
fix the _namespace_map cleanup for cElementTree tests.
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/etree/ElementTree.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py
index 93147eb..defef0d 100644
--- a/Lib/xml/etree/ElementTree.py
+++ b/Lib/xml/etree/ElementTree.py
@@ -1086,6 +1086,8 @@ _namespace_map = {
# dublin core
"http://purl.org/dc/elements/1.1/": "dc",
}
+# For tests and troubleshooting
+register_namespace._namespace_map = _namespace_map
def _raise_serialization_error(text):
raise TypeError(