summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-01-10 10:38:57 (GMT)
committerGitHub <noreply@github.com>2023-01-10 10:38:57 (GMT)
commita7f9afdd465886ad6fce94e34f1ebff8730a3faa (patch)
tree2924b1247b352992d92115fdafa472f6b11ac593
parent1e74a12bde76de203a23edf114941fd46d91e9cd (diff)
downloadcpython-a7f9afdd465886ad6fce94e34f1ebff8730a3faa.zip
cpython-a7f9afdd465886ad6fce94e34f1ebff8730a3faa.tar.gz
cpython-a7f9afdd465886ad6fce94e34f1ebff8730a3faa.tar.bz2
[3.11] gh-100916: Convert argument to appropriate type (GH-100917) (GH-100918)
Co-authored-by: Yao-Ching Huang <tom4996131207@gmail.com>
-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 bf6f54a..8aec8e5 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