From 5750017563f3121bc3198c4e375d43d4b472ebc7 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 4 Aug 2000 03:14:55 +0000 Subject: Remove the outer test for __name__; not necessary. --- Lib/xml/__init__.py | 15 +++++++-------- 1 file 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 -- cgit v0.12