Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ab532b

Browse files
committed
Issue 21014: Use booleans instead of 0 and 1 in examples.
1 parent 9381343 commit 4ab532b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/howto/logging-cookbook.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ module. Here is a basic working example::
416416
Simple TCP socket-based logging receiver suitable for testing.
417417
"""
418418

419-
allow_reuse_address = 1
419+
allow_reuse_address = True
420420

421421
def __init__(self, host='localhost',
422422
port=logging.handlers.DEFAULT_TCP_LOGGING_PORT,

Doc/tutorial/interpreter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ before printing the first prompt::
106106
Continuation lines are needed when entering a multi-line construct. As an
107107
example, take a look at this :keyword:`if` statement::
108108

109-
>>> the_world_is_flat = 1
109+
>>> the_world_is_flat = True
110110
>>> if the_world_is_flat:
111111
... print("Be careful not to fall off!")
112112
...

0 commit comments

Comments
 (0)