Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Oct 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.