From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 10 Jan 2023 10:39:11 +0000 (-0800) Subject: [3.10] gh-100916: Convert argument to appropriate type (GH-100917) (GH-100919) X-Git-Tag: v3.10.10~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5aa8b9e70c44862cf3f600bdc329a20790b67056;p=thirdparty%2FPython%2Fcpython.git [3.10] gh-100916: Convert argument to appropriate type (GH-100917) (GH-100919) Co-authored-by: Yao-Ching Huang --- diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst index fecc729cc03a..1fa8dc10ad3c 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