summaryrefslogtreecommitdiffstats
path: root/Doc/howto/logging-cookbook.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-03-28 23:39:25 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-03-28 23:39:25 (GMT)
commit4ab532bbfeb6dd6c9804996e19b665b22de65d56 (patch)
treea8a3577c7e4160ad53768e56b0b9e3485df85ca4 /Doc/howto/logging-cookbook.rst
parent938134394837f3cac1f8cbe3c3bf4f53c5ce0379 (diff)
downloadcpython-4ab532bbfeb6dd6c9804996e19b665b22de65d56.zip
cpython-4ab532bbfeb6dd6c9804996e19b665b22de65d56.tar.gz
cpython-4ab532bbfeb6dd6c9804996e19b665b22de65d56.tar.bz2
Issue 21014: Use booleans instead of 0 and 1 in examples.
Diffstat (limited to 'Doc/howto/logging-cookbook.rst')
-rw-r--r--Doc/howto/logging-cookbook.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst
index 833ad15..82c8f51 100644
--- a/Doc/howto/logging-cookbook.rst
+++ b/Doc/howto/logging-cookbook.rst
@@ -416,7 +416,7 @@ module. Here is a basic working example::
Simple TCP socket-based logging receiver suitable for testing.
"""
- allow_reuse_address = 1
+ allow_reuse_address = True
def __init__(self, host='localhost',
port=logging.handlers.DEFAULT_TCP_LOGGING_PORT,