[Python-checkins] cpython (2.7): fix description of \r; thanks to Thomas Waldmann from docs@

sandro.tosi python-checkins at python.org
Fri Aug 19 22:57:13 CEST 2011


http://hg.python.org/cpython/rev/3e093590ac57
changeset:   71974:3e093590ac57
branch:      2.7
parent:      71971:d38509db3616
user:        Sandro Tosi <sandro.tosi at gmail.com>
date:        Fri Aug 19 22:54:33 2011 +0200
summary:
  fix description of \r; thanks to Thomas Waldmann from docs@

files:
  Doc/library/re.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/re.rst b/Doc/library/re.rst
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -613,7 +613,7 @@
    of *pattern* in *string* by the replacement *repl*.  If the pattern isn't found,
    *string* is returned unchanged.  *repl* can be a string or a function; if it is
    a string, any backslash escapes in it are processed.  That is, ``\n`` is
-   converted to a single newline character, ``\r`` is converted to a linefeed, and
+   converted to a single newline character, ``\r`` is converted to a carriage return, and
    so forth.  Unknown escapes such as ``\j`` are left alone.  Backreferences, such
    as ``\6``, are replaced with the substring matched by group 6 in the pattern.
    For example:

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list