[Python-checkins] [3.11] gh-100916: Convert argument to appropriate type (GH-100917) (GH-100918)

vsajip webhook-mailer at python.org
Tue Jan 10 05:39:03 EST 2023


https://github.com/python/cpython/commit/a7f9afdd465886ad6fce94e34f1ebff8730a3faa
commit: a7f9afdd465886ad6fce94e34f1ebff8730a3faa
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: vsajip <vinay_sajip at yahoo.co.uk>
date: 2023-01-10T10:38:57Z
summary:

[3.11] gh-100916: Convert argument to appropriate type (GH-100917) (GH-100918)

Co-authored-by: Yao-Ching Huang <tom4996131207 at gmail.com>

files:
M Doc/howto/logging-cookbook.rst

diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst
index bf6f54a841a7..8aec8e5e5ee0 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



More information about the Python-checkins mailing list