]> granicus.if.org Git - python/commitdiff
Closes #14343: avoid shadowing builtin input() in example code.
authorGeorg Brandl <georg@python.org>
Sat, 17 Mar 2012 16:26:27 +0000 (17:26 +0100)
committerGeorg Brandl <georg@python.org>
Sat, 17 Mar 2012 16:26:27 +0000 (17:26 +0100)
Doc/library/re.rst

index 8744bdbd54fcab82315462f2275918f8f2c7bd44..0e4acd88ae71bc715374caaa79722488d13ed0a1 100644 (file)
@@ -1136,7 +1136,7 @@ creates a phonebook.
 First, here is the input.  Normally it may come from a file, here we are using
 triple-quoted string syntax:
 
-   >>> input = """Ross McFluff: 834.345.1254 155 Elm Street
+   >>> text = """Ross McFluff: 834.345.1254 155 Elm Street
    ...
    ... Ronald Heathmore: 892.345.3428 436 Finley Avenue
    ... Frank Burger: 925.541.7625 662 South Dogwood Way
@@ -1150,7 +1150,7 @@ into a list with each nonempty line having its own entry:
 .. doctest::
    :options: +NORMALIZE_WHITESPACE
 
-   >>> entries = re.split("\n+", input)
+   >>> entries = re.split("\n+", text)
    >>> entries
    ['Ross McFluff: 834.345.1254 155 Elm Street',
    'Ronald Heathmore: 892.345.3428 436 Finley Avenue',