Kaydet (Commit) 08dca0d6 authored tarafından R. David Murray's avatar R. David Murray

Remove a leftover from a previous iteration of the issue 7376 patch.

üst bd335bfc
...@@ -2665,7 +2665,7 @@ def _test(): ...@@ -2665,7 +2665,7 @@ def _test():
testfiles = [arg for arg in sys.argv[1:] if arg and arg[0] != '-'] testfiles = [arg for arg in sys.argv[1:] if arg and arg[0] != '-']
if not testfiles: if not testfiles:
name = os.path.basename(sys.argv[0]) 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) name, _ = os.path.splitext(name)
print("usage: {0} [-v] file ...".format(name)) print("usage: {0} [-v] file ...".format(name))
return 2 return 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment