[Python-checkins] r76973 - python/trunk/Lib/doctest.py

r.david.murray python-checkins at python.org
Mon Dec 21 13:45:42 CET 2009


Author: r.david.murray
Date: Mon Dec 21 13:45:41 2009
New Revision: 76973

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


Modified:
   python/trunk/Lib/doctest.py

Modified: python/trunk/Lib/doctest.py
==============================================================================
--- python/trunk/Lib/doctest.py	(original)
+++ python/trunk/Lib/doctest.py	Mon Dec 21 13:45:41 2009
@@ -2665,7 +2665,7 @@
     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


More information about the Python-checkins mailing list