summaryrefslogtreecommitdiffstats
path: root/Doc/using
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2023-07-01 02:34:31 (GMT)
committerGitHub <noreply@github.com>2023-07-01 02:34:31 (GMT)
commit04dfc6fa9018e92a5b51c29fc0ff45419c596bc3 (patch)
tree234c4aa0370a03703926c1fa54e71a4c2782e2dd /Doc/using
parenteb7d6e7ad844955f9af88707d296e003c7ce4394 (diff)
downloadcpython-04dfc6fa9018e92a5b51c29fc0ff45419c596bc3.zip
cpython-04dfc6fa9018e92a5b51c29fc0ff45419c596bc3.tar.gz
cpython-04dfc6fa9018e92a5b51c29fc0ff45419c596bc3.tar.bz2
gh-106232: Make timeit doc command lines compatible with Windows. (#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.
Diffstat (limited to 'Doc/using')
-rw-r--r--Doc/using/cmdline.rst2
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