[Python-checkins] cpython (merge 3.3 -> default): Merge issue #16439: Fix markup in example for stdtypes.

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


http://hg.python.org/cpython/rev/ce6fc4531d26
changeset: 80318:ce6fc4531d26
parent: 80315:e1e019b3d903
parent: 80317:65499860c6f8
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Thu Nov 08 17:27:53 2012 +0200
summary:
 Merge 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
@@ -1832,11 +1832,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 によって変換されたページ (->オリジナル) /