]> granicus.if.org Git - python/commitdiff
Issue 21014: Use booleans instead of 0 and 1 in examples.
authorRaymond Hettinger <python@rcn.com>
Fri, 28 Mar 2014 23:39:25 +0000 (16:39 -0700)
committerRaymond Hettinger <python@rcn.com>
Fri, 28 Mar 2014 23:39:25 +0000 (16:39 -0700)
Doc/howto/logging-cookbook.rst
Doc/tutorial/interpreter.rst

index 833ad15d048f75792e216a263ece82521839e56a..82c8f51382b841714a72af20961f771dcaf55b4f 100644 (file)
@@ -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,
index 9ab77f800962cf6efeb6e38de9606830858aba1a..8e8395a3496ddea0c70fae48c0586393a2573766 100644 (file)
@@ -106,7 +106,7 @@ before printing the first prompt::
 Continuation lines are needed when entering a multi-line construct. As an
 example, take a look at this :keyword:`if` statement::
 
-   >>> the_world_is_flat = 1
+   >>> the_world_is_flat = True
    >>> if the_world_is_flat:
    ...     print("Be careful not to fall off!")
    ...