summaryrefslogtreecommitdiffstats
path: root/Doc/library/stdtypes.rst
diff options
context:
space:
mode:
authorSandro Tosi <sandro.tosi@gmail.com>2012-08-12 10:35:14 (GMT)
committerSandro Tosi <sandro.tosi@gmail.com>2012-08-12 10:35:14 (GMT)
commit82a509ca759dd420906ee074c0ca5973be137a30 (patch)
treea488470ecff9ab97d3011a1256e2a9834d57846c /Doc/library/stdtypes.rst
parent8b2c71a125dcd2371ec074ecf86c99ca1ae0d2a8 (diff)
downloadcpython-82a509ca759dd420906ee074c0ca5973be137a30.zip
cpython-82a509ca759dd420906ee074c0ca5973be137a30.tar.gz
cpython-82a509ca759dd420906ee074c0ca5973be137a30.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.rst2
1 files changed, 1 insertions, 1 deletions
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