summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-01-10 10:39:11 (GMT)
committerGitHub <noreply@github.com>2023-01-10 10:39:11 (GMT)
commit5aa8b9e70c44862cf3f600bdc329a20790b67056 (patch)
tree136844abf105d83cd056f3d47709b976cad621be /Doc
parent65b01b23bca905d2b5ef62b03425f40ef522f314 (diff)
downloadcpython-5aa8b9e70c44862cf3f600bdc329a20790b67056.zip
cpython-5aa8b9e70c44862cf3f600bdc329a20790b67056.tar.gz
cpython-5aa8b9e70c44862cf3f600bdc329a20790b67056.tar.bz2
[3.10] gh-100916: Convert argument to appropriate type (GH-100917) (GH-100919)
Co-authored-by: Yao-Ching Huang <tom4996131207@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/howto/logging-cookbook.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst
index fecc729..1fa8dc1 100644
--- a/Doc/howto/logging-cookbook.rst
+++ b/Doc/howto/logging-cookbook.rst
@@ -1131,7 +1131,7 @@ each request is handled by a thread:
'context can be used to '
'populate logs')
aa = ap.add_argument
- aa('--count', '-c', default=100, help='How many requests to simulate')
+ aa('--count', '-c', type=int, default=100, help='How many requests to simulate')
options = ap.parse_args()
# Create the dummy webapps and put them in a list which we can use to select