X Tutup
Skip to content

Commit 5750017

Browse files
committed
Remove the outer test for __name__; not necessary.
1 parent 72d421b commit 5750017

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Lib/xml/__init__.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
"""
1414

1515

16-
if __name__ == "xml":
17-
try:
18-
import _xmlplus
19-
except ImportError:
20-
pass
21-
else:
22-
import sys
23-
sys.modules[__name__] = _xmlplus
16+
try:
17+
import _xmlplus
18+
except ImportError:
19+
pass
20+
else:
21+
import sys
22+
sys.modules[__name__] = _xmlplus

0 commit comments

Comments
 (0)
X Tutup