diff options
author | Sandro Tosi <sandro.tosi@gmail.com> | 2012-08-12 10:34:57 (GMT) |
---|---|---|
committer | Sandro Tosi <sandro.tosi@gmail.com> | 2012-08-12 10:34:57 (GMT) |
commit | 018e14dfe96612e533736f496fe2858684c3292a (patch) | |
tree | 62d3dc6dd6e613bf00f3bf4a82bd641399abc49e /Doc/library/stdtypes.rst | |
parent | 6c625e6024861972dfa28554581c0905448ee78e (diff) | |
download | cpython-018e14dfe96612e533736f496fe2858684c3292a.zip cpython-018e14dfe96612e533736f496fe2858684c3292a.tar.gz cpython-018e14dfe96612e533736f496fe2858684c3292a.tar.bz2 |
add missing quote in splitlines() example; thanks to Yevgen Yampolskiy from docs@
Diffstat (limited to 'Doc/library/stdtypes.rst')
-rw-r--r-- | Doc/library/stdtypes.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index a7a6fb1..abe3052 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 |