diff options
author | R. David Murray <rdmurray@bitdance.com> | 2009-12-21 12:50:02 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2009-12-21 12:50:02 (GMT) |
commit | 0f72d6c25fb3ff16b4c459221d56f87f221c59d0 (patch) | |
tree | 31151286eb4de5829c8cfc452d4cdd1a32fe7d68 /Lib/doctest.py | |
parent | 309aa2dcb488074161c86257d4ddfe104d1ec53a (diff) | |
download | cpython-0f72d6c25fb3ff16b4c459221d56f87f221c59d0.zip cpython-0f72d6c25fb3ff16b4c459221d56f87f221c59d0.tar.gz cpython-0f72d6c25fb3ff16b4c459221d56f87f221c59d0.tar.bz2 |
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.
........
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r-- | Lib/doctest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py index 9bae20f..e80e74d 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -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 |