From: R. David Murray Date: Mon, 21 Dec 2009 12:45:41 +0000 (+0000) Subject: Remove a leftover from a previous iteration of the issue 7376 patch. X-Git-Tag: v2.7a2~132 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08dca0d6daf46eecb758c8765fdb592211122d47;p=python Remove a leftover from a previous iteration of the issue 7376 patch. --- diff --git a/Lib/doctest.py b/Lib/doctest.py index 158e8b8731..b07ef6e4f3 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