summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2009-12-21 12:45:41 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2009-12-21 12:45:41 (GMT)
commit08dca0d6daf46eecb758c8765fdb592211122d47 (patch)
treeffade1be40472709f706c171153503d38e2b8b67
parentbd335bfce7b9fca4f9bd904d26d2b551c012a716 (diff)
downloadcpython-08dca0d6daf46eecb758c8765fdb592211122d47.zip
cpython-08dca0d6daf46eecb758c8765fdb592211122d47.tar.gz
cpython-08dca0d6daf46eecb758c8765fdb592211122d47.tar.bz2
Remove a leftover from a previous iteration of the issue 7376 patch.
-rw-r--r--Lib/doctest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index 158e8b8..b07ef6e 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -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