Skip to content

Commit cb4615f

Browse files
authored
gh-90085: Remove vestigial -t and -c timeit options (#94941)
See bpo-28240. The functionality was removed in 3d7feb9. The options had been deprecated since Python 3.3
1 parent f4f8133 commit cb4615f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Lib/timeit.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,9 @@ def main(args=None, *, _wrap_timer=None):
259259
args = sys.argv[1:]
260260
import getopt
261261
try:
262-
opts, args = getopt.getopt(args, "n:u:s:r:tcpvh",
262+
opts, args = getopt.getopt(args, "n:u:s:r:pvh",
263263
["number=", "setup=", "repeat=",
264-
"time", "clock", "process",
265-
"verbose", "unit=", "help"])
264+
"process", "verbose", "unit=", "help"])
266265
except getopt.error as err:
267266
print(err)
268267
print("use -h/--help for command line help")
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Remove ``-c/--clock`` and ``-t/--time`` CLI options of :mod:`timeit`.
2+
The options had been deprecated since Python 3.3 and the functionality
3+
was removed in Python 3.7. Patch by Shantanu Jain.

0 commit comments

Comments
 (0)