summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-03-17 16:26:27 (GMT)
committerGeorg Brandl <georg@python.org>2012-03-17 16:26:27 (GMT)
commit557a3ec9bbf875abaea6b4c1bed577405182db63 (patch)
treecd2dc0836e2ffacedffa9bb6ad658a5a35abcb47 /Doc
parent5ec6fdb0f6ffe467ed0cfc630354129fc6bad319 (diff)
downloadcpython-557a3ec9bbf875abaea6b4c1bed577405182db63.zip
cpython-557a3ec9bbf875abaea6b4c1bed577405182db63.tar.gz
cpython-557a3ec9bbf875abaea6b4c1bed577405182db63.tar.bz2
Closes #14343: avoid shadowing builtin input() in example code.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/re.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 8744bdb..0e4acd8 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -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',