Skip to content

Commit

Permalink
gh-90085: Remove vestigial -t and -c timeit options (#94941)
Browse files Browse the repository at this point in the history
See bpo-28240. The functionality was removed in 3d7feb9.
The options had been deprecated since Python 3.3
  • Loading branch information
hauntsaninja committed Oct 7, 2022
1 parent f4f8133 commit cb4615f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Lib/timeit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit cb4615f

Please sign in to comment.