Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f72d6c

Browse files
committed
Merged revisions 76973 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r76973 | r.david.murray | 2009-12-21 07:45:41 -0500 (Mon, 21 Dec 2009) | 2 lines Remove a leftover from a previous iteration of the issue 7376 patch. ........
1 parent 309aa2d commit 0f72d6c

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
@@ -2616,7 +2616,7 @@ def _test():
26162616
testfiles = [arg for arg in sys.argv[1:] if arg and arg[0] != '-']
26172617
if not testfiles:
26182618
name = os.path.basename(sys.argv[0])
2619-
if '__loader__' in globals() and name.endswith('.py'): # python -m
2619+
if '__loader__' in globals(): # python -m
26202620
name, _ = os.path.splitext(name)
26212621
print("usage: {0} [-v] file ...".format(name))
26222622
return 2

0 commit comments

Comments
 (0)