From: Fred Drake Date: Fri, 4 Aug 2000 03:14:55 +0000 (+0000) Subject: Remove the outer test for __name__; not necessary. X-Git-Tag: v2.0b1~582 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5750017563f3121bc3198c4e375d43d4b472ebc7;p=python Remove the outer test for __name__; not necessary. --- diff --git a/Lib/xml/__init__.py b/Lib/xml/__init__.py index 0a80011f5f..c27a137843 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