]> granicus.if.org Git - python/commitdiff
Remove the outer test for __name__; not necessary.
authorFred Drake <fdrake@acm.org>
Fri, 4 Aug 2000 03:14:55 +0000 (03:14 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 4 Aug 2000 03:14:55 +0000 (03:14 +0000)
Lib/xml/__init__.py

index 0a80011f5fd0f0f876f04fe7ef9ef72497fc0e0a..c27a137843141e6b50bcaa774209f66f4cfc1ccd 100644 (file)
@@ -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