]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] gh-100916: Convert argument to appropriate type (GH-100917) (GH-100919)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 Jan 2023 10:39:11 +0000 (02:39 -0800)
committerGitHub <noreply@github.com>
Tue, 10 Jan 2023 10:39:11 +0000 (10:39 +0000)
Co-authored-by: Yao-Ching Huang <tom4996131207@gmail.com>
Doc/howto/logging-cookbook.rst

index fecc729cc03a497857a9c17cab5f69364f3a768e..1fa8dc10ad3ca9ad31050976e7d45fa0a28fe1b2 100644 (file)
@@ -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