diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-07-01 02:40:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-01 02:40:43 (GMT) |
commit | 8738c5bceea309944dc4f18e49cf90e871ecbe65 (patch) | |
tree | d3a1d4163c0f63b8987db429a8718e15c35f9334 /Doc/using | |
parent | c4298d5c648ba79d0a3dbf16e9aa8a6011802470 (diff) | |
download | cpython-8738c5bceea309944dc4f18e49cf90e871ecbe65.zip cpython-8738c5bceea309944dc4f18e49cf90e871ecbe65.tar.gz cpython-8738c5bceea309944dc4f18e49cf90e871ecbe65.tar.bz2 |
[3.12] gh-106232: Make timeit doc command lines compatible with Windows. (GH-106296) (#106298)
gh-106232: Make timeit doc command lines compatible with Windows. (GH-106296)
Command Prompt (CMD Shell) and older versions of PowerShell
require double quotes and single quotes inside the string.
This form also works on linux and macOS.
(cherry picked from commit 04dfc6fa9018e92a5b51c29fc0ff45419c596bc3)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Doc/using')
-rw-r--r-- | Doc/using/cmdline.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst index 9d4042c..1b470d3 100644 --- a/Doc/using/cmdline.rst +++ b/Doc/using/cmdline.rst @@ -109,7 +109,7 @@ source. Many standard library modules contain code that is invoked on their execution as a script. An example is the :mod:`timeit` module:: - python -m timeit -s 'setup here' 'benchmarked code here' + python -m timeit -s "setup here" "benchmarked code here" python -m timeit -h # for details .. audit-event:: cpython.run_module module-name cmdoption-m |