[Python-checkins] cpython (3.2): Closes #14343: avoid shadowing builtin input() in example code.
georg.brandl
python-checkins at python.org
Sat Mar 17 17:26:40 CET 2012
http://hg.python.org/cpython/rev/6cf5f963e0c4
changeset: 75785:6cf5f963e0c4
branch: 3.2
user: Georg Brandl <georg at python.org>
date: Sat Mar 17 17:26:27 2012 +0100
summary:
Closes #14343: avoid shadowing builtin input() in example code.
files:
Doc/library/re.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -1136,7 +1136,7 @@
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 @@
.. 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',
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list