[Python-checkins] cpython (2.7): Issue #16439: Fix markup in example for stdtypes.

andrew.svetlov python-checkins at python.org
Thu Nov 8 16:29:19 CET 2012


http://hg.python.org/cpython/rev/f068c3e7743d
changeset: 80319:f068c3e7743d
branch: 2.7
parent: 80307:d32d04edd371
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Thu Nov 08 17:29:02 2012 +0200
summary:
 Issue #16439: Fix markup in example for stdtypes.
Thanks to Yongzhi Pan.
files:
 Doc/library/stdtypes.rst | 10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1253,11 +1253,11 @@
 
 >>> import re
 >>> def titlecase(s):
- return re.sub(r"[A-Za-z]+('[A-Za-z]+)?",
- lambda mo: mo.group(0)[0].upper() +
- mo.group(0)[1:].lower(),
- s)
-
+ ... return re.sub(r"[A-Za-z]+('[A-Za-z]+)?",
+ ... lambda mo: mo.group(0)[0].upper() +
+ ... mo.group(0)[1:].lower(),
+ ... s)
+ ...
 >>> titlecase("they're bill's friends.")
 "They're Bill's Friends."
 
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

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