summaryrefslogtreecommitdiffstats
path: root/Lib/textwrap.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-03 15:12:41 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-03 15:12:41 (GMT)
commit9f8a8910a415e31808debe6e9fed7f7c3638d42a (patch)
treeffa59e04328fee48f702a8f1ec628a8a83e7b881 /Lib/textwrap.py
parent72dcb0a7658c6dd99c2798b515c76e8cb311dbf6 (diff)
downloadcpython-9f8a8910a415e31808debe6e9fed7f7c3638d42a.zip
cpython-9f8a8910a415e31808debe6e9fed7f7c3638d42a.tar.gz
cpython-9f8a8910a415e31808debe6e9fed7f7c3638d42a.tar.bz2
Escaped backslashes in docstrings.
Diffstat (limited to 'Lib/textwrap.py')
-rw-r--r--Lib/textwrap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/textwrap.py b/Lib/textwrap.py
index 2489180..58867f9 100644
--- a/Lib/textwrap.py
+++ b/Lib/textwrap.py
@@ -133,7 +133,7 @@ class TextWrapper:
"""_munge_whitespace(text : string) -> string
Munge whitespace in text: expand tabs and convert all other
- whitespace characters to spaces. Eg. " foo\tbar\n\nbaz"
+ whitespace characters to spaces. Eg. " foo\\tbar\\n\\nbaz"
becomes " foo bar baz".
"""
if self.expand_tabs:
@@ -169,7 +169,7 @@ class TextWrapper:
"""_fix_sentence_endings(chunks : [string])
Correct for sentence endings buried in 'chunks'. Eg. when the
- original text contains "... foo.\nBar ...", munge_whitespace()
+ original text contains "... foo.\\nBar ...", munge_whitespace()
and split() will convert that to [..., "foo.", " ", "Bar", ...]
which has one too few spaces; this method simply changes the one
space to two.
@@ -405,7 +405,7 @@ def dedent(text):
in indented form.
Note that tabs and spaces are both treated as whitespace, but they
- are not equal: the lines " hello" and "\thello" are
+ are not equal: the lines " hello" and "\\thello" are
considered to have no common leading whitespace. (This behaviour is
new in Python 2.5; older versions of this module incorrectly
expanded tabs before searching for common leading whitespace.)