Commit f0ada9d3 authored by Raymond Hettinger's avatar Raymond Hettinger

Issue 21014: Use booleans instead of 0 and 1 in examples.

parent 72650bec
...@@ -416,7 +416,7 @@ module. Here is a basic working example:: ...@@ -416,7 +416,7 @@ module. Here is a basic working example::
Simple TCP socket-based logging receiver suitable for testing. Simple TCP socket-based logging receiver suitable for testing.
""" """
allow_reuse_address = 1 allow_reuse_address = True
def __init__(self, host='localhost', def __init__(self, host='localhost',
port=logging.handlers.DEFAULT_TCP_LOGGING_PORT, port=logging.handlers.DEFAULT_TCP_LOGGING_PORT,
......
...@@ -106,7 +106,7 @@ before printing the first prompt:: ...@@ -106,7 +106,7 @@ before printing the first prompt::
Continuation lines are needed when entering a multi-line construct. As an Continuation lines are needed when entering a multi-line construct. As an
example, take a look at this :keyword:`if` statement:: example, take a look at this :keyword:`if` statement::
>>> the_world_is_flat = 1 >>> the_world_is_flat = True
>>> if the_world_is_flat: >>> if the_world_is_flat:
... print("Be careful not to fall off!") ... print("Be careful not to fall off!")
... ...
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment