[Python-checkins] cpython (merge 3.2 -> 3.3): Merge issue #16439: Fix markup in example for stdtypes.
andrew.svetlov
python-checkins at python.org
Thu Nov 8 16:29:16 CET 2012
http://hg.python.org/cpython/rev/65499860c6f8
changeset: 80317:65499860c6f8
branch: 3.3
parent: 80314:1d5ca20f73e2
parent: 80316:aeb5c53a1d69
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Thu Nov 08 17:27:39 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