diff options
author | Georg Brandl <georg@python.org> | 2012-03-17 16:26:27 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-03-17 16:26:27 (GMT) |
commit | 5a607b06d6f50c6b36523ef7362ef7cea6431acd (patch) | |
tree | 2f8e5e783184d3c242cbe6b6e21f84a4cd162ca1 | |
parent | ce54617260790a523c246a1f4080b8e82386cd20 (diff) | |
download | cpython-5a607b06d6f50c6b36523ef7362ef7cea6431acd.zip cpython-5a607b06d6f50c6b36523ef7362ef7cea6431acd.tar.gz cpython-5a607b06d6f50c6b36523ef7362ef7cea6431acd.tar.bz2 |
Closes #14343: avoid shadowing builtin input() in example code.
-rw-r--r-- | Doc/library/re.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index c2ac332..cd0d204 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -1123,7 +1123,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 @@ -1137,7 +1137,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', |