add missing quote in splitlines() example; thanks to Yevgen Yampolskiy from docs@

This commit is contained in:
Sandro Tosi 2012-08-12 12:35:14 +02:00
parent 8b2c71a125
commit 82a509ca75
1 changed files with 1 additions and 1 deletions

View File

@ -1334,7 +1334,7 @@ functions based on regular expressions.
For example, ``'ab c\n\nde fg\rkl\r\n'.splitlines()`` returns For example, ``'ab c\n\nde fg\rkl\r\n'.splitlines()`` returns
``['ab c', '', 'de fg', 'kl']``, while the same call with ``splitlines(True)`` ``['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 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 method returns an empty list for the empty string, and a terminal line