From: Sandro Tosi Date: Sun, 12 Aug 2012 10:34:57 +0000 (+0200) Subject: add missing quote in splitlines() example; thanks to Yevgen Yampolskiy from docs@ X-Git-Tag: v2.7.5~109^2~393 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=018e14dfe96612e533736f496fe2858684c3292a;p=python add missing quote in splitlines() example; thanks to Yevgen Yampolskiy from docs@ --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index a7a6fb1196..abe305250b 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -1190,7 +1190,7 @@ string functions based on regular expressions. For example, ``'ab c\n\nde fg\rkl\r\n'.splitlines()`` returns ``['ab c', '', 'de fg', 'kl']``, while the same call with ``splitlines(True)`` - returns ``['ab c\n', '\n, 'de fg\r', 'kl\r\n']``. + returns ``['ab c\n', '\n', 'de fg\r', 'kl\r\n']``. Unlike :meth:`~str.split` when a delimiter string *sep* is given, this method returns an empty list for the empty string, and a terminal line