]> granicus.if.org Git - python/commitdiff
Remove a leftover from a previous iteration of the issue 7376 patch.
authorR. David Murray <rdmurray@bitdance.com>
Mon, 21 Dec 2009 12:45:41 +0000 (12:45 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Mon, 21 Dec 2009 12:45:41 +0000 (12:45 +0000)
Lib/doctest.py

index 158e8b8731b698e37e1fbac0a25aeda2ea064f57..b07ef6e4f35bcb24d52ca099d0e27ad75dacd02a 100644 (file)
@@ -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