diff options
author | Shantanu <12621235+hauntsaninja@users.noreply.github.com> | 2022-10-07 22:38:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 22:38:20 (GMT) |
commit | cb4615fd43e678fe44e9aeb6a486475a05b492e7 (patch) | |
tree | bb4fdc0baf38c91a2b6b679f5d7c458af34efce8 | |
parent | f4f813338736aecc9285a9408cb8a07eaeb0e373 (diff) | |
download | cpython-cb4615fd43e678fe44e9aeb6a486475a05b492e7.zip cpython-cb4615fd43e678fe44e9aeb6a486475a05b492e7.tar.gz cpython-cb4615fd43e678fe44e9aeb6a486475a05b492e7.tar.bz2 |
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
-rwxr-xr-x | Lib/timeit.py | 5 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-07-17-22-31-32.gh-issue-90085.c4FWcS.rst | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Lib/timeit.py b/Lib/timeit.py index 9dfd454..0cf8db6 100755 --- a/Lib/timeit.py +++ b/Lib/timeit.py @@ -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") diff --git a/Misc/NEWS.d/next/Library/2022-07-17-22-31-32.gh-issue-90085.c4FWcS.rst b/Misc/NEWS.d/next/Library/2022-07-17-22-31-32.gh-issue-90085.c4FWcS.rst new file mode 100644 index 0000000..37952ad --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-07-17-22-31-32.gh-issue-90085.c4FWcS.rst @@ -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. |