From 82a509ca759dd420906ee074c0ca5973be137a30 Mon Sep 17 00:00:00 2001 From: Sandro Tosi Date: Sun, 12 Aug 2012 12:35:14 +0200 Subject: add missing quote in splitlines() example; thanks to Yevgen Yampolskiy from docs@ --- Doc/library/stdtypes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 62c4436..f46787e 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -1334,7 +1334,7 @@ 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 -- cgit v0.12