mirror of https://github.com/python/cpython
Remove a leftover from a previous iteration of the issue 7376 patch.
This commit is contained in:
parent
bd335bfce7
commit
08dca0d6da
|
@ -2665,7 +2665,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
|
||||
|
|
Loading…
Reference in New Issue