gh-90085: Remove vestigial -t and -c timeit options (#94941)

See bpo-28240. The functionality was removed in 3d7feb9ac2.
The options had been deprecated since Python 3.3
This commit is contained in:
Shantanu 2022-10-07 15:38:20 -07:00 committed by GitHub
parent f4f8133387
commit cb4615fd43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -259,10 +259,9 @@ def main(args=None, *, _wrap_timer=None):
args = sys.argv[1:]
import getopt
try:
opts, args = getopt.getopt(args, "n:u:s:r:tcpvh",
opts, args = getopt.getopt(args, "n:u:s:r:pvh",
["number=", "setup=", "repeat=",
"time", "clock", "process",
"verbose", "unit=", "help"])
"process", "verbose", "unit=", "help"])
except getopt.error as err:
print(err)
print("use -h/--help for command line help")

View File

@ -0,0 +1,3 @@
Remove ``-c/--clock`` and ``-t/--time`` CLI options of :mod:`timeit`.
The options had been deprecated since Python 3.3 and the functionality
was removed in Python 3.7. Patch by Shantanu Jain.