]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
add missing quote in splitlines() example; thanks to Yevgen Yampolskiy from docs@
authorSandro Tosi <sandro.tosi@gmail.com>
Sun, 12 Aug 2012 10:35:14 +0000 (12:35 +0200)
committerSandro Tosi <sandro.tosi@gmail.com>
Sun, 12 Aug 2012 10:35:14 +0000 (12:35 +0200)
Doc/library/stdtypes.rst

index 62c4436dfa6aa036ed55d640edef49fddd8a6565..f46787e153b7fedb0ccf44bda2af6dc69f9092cb 100644 (file)
@@ -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