[Python-checkins] cpython (2.7): add missing quote in splitlines() example; thanks to Yevgen Yampolskiy from

sandro.tosi python-checkins at python.org
Sun Aug 12 12:36:03 CEST 2012


http://hg.python.org/cpython/rev/61f1bf70db95
changeset: 78521:61f1bf70db95
branch: 2.7
parent: 78518:8f78fc269c1b
user: Sandro Tosi <sandro.tosi at gmail.com>
date: Sun Aug 12 12:34:57 2012 +0200
summary:
 add missing quote in splitlines() example; thanks to Yevgen Yampolskiy from docs@
files:
 Doc/library/stdtypes.rst | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1190,7 +1190,7 @@
 
 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
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /