Skip to content

Commit eff32b1

Browse files
committed
Remove a leftover from a previous iteration of the issue 7376 patch.
1 parent 03e761d commit eff32b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/doctest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2665,7 +2665,7 @@ def _test():
26652665
testfiles = [arg for arg in sys.argv[1:] if arg and arg[0] != '-']
26662666
if not testfiles:
26672667
name = os.path.basename(sys.argv[0])
2668-
if '__loader__' in globals() and name.endswith('.py'): # python -m
2668+
if '__loader__' in globals(): # python -m
26692669
name, _ = os.path.splitext(name)
26702670
print("usage: {0} [-v] file ...".format(name))
26712671
return 2

0 commit comments

Comments
 (0)