summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-08-04 03:14:55 (GMT)
committerFred Drake <fdrake@acm.org>2000-08-04 03:14:55 (GMT)
commit5750017563f3121bc3198c4e375d43d4b472ebc7 (patch)
treea0f522cd6116eb46d4456a28c6131fe98ad1611e /Lib/xml
parent72d421b75ca05f54ff4f5df4aac5291d6c568ae8 (diff)
downloadcpython-5750017563f3121bc3198c4e375d43d4b472ebc7.zip
cpython-5750017563f3121bc3198c4e375d43d4b472ebc7.tar.gz
cpython-5750017563f3121bc3198c4e375d43d4b472ebc7.tar.bz2
Remove the outer test for __name__; not necessary.
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/__init__.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/Lib/xml/__init__.py b/Lib/xml/__init__.py
index 0a80011..c27a137 100644
--- a/Lib/xml/__init__.py
+++ b/Lib/xml/__init__.py
@@ -13,11 +13,10 @@ sax -- The Simple API for XML, developed by XML-Dev, led by David
"""
-if __name__ == "xml":
- try:
- import _xmlplus
- except ImportError:
- pass
- else:
- import sys
- sys.modules[__name__] = _xmlplus
+try:
+ import _xmlplus
+except ImportError:
+ pass
+else:
+ import sys
+ sys.modules[__name__] = _xmlplus