Merged revisions 76973 via svnmerge from

svn+ssh://pythondev@svn.python.org/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.
........
This commit is contained in:
R. David Murray 2009-12-21 12:50:02 +00:00
parent 309aa2dcb4
commit 0f72d6c25f
1 changed files with 1 additions and 1 deletions

View File

@ -2616,7 +2616,7 @@ def _test():
testfiles = [arg for arg in sys.argv[1:] if arg and arg[0] != '-']
if not testfiles:
name = os.path.basename(sys.argv[0])
if '__loader__' in globals() and name.endswith('.py'): # python -m
if '__loader__' in globals(): # python -m
name, _ = os.path.splitext(name)
print("usage: {0} [-v] file ...".format(name))
return 2