mirror of https://github.com/python/cpython
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:
parent
f4f8133387
commit
cb4615fd43
|
@ -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")
|
||||
|
|
|
@ -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.
|
Loading…
Reference in New Issue