summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-08 15:27:53 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-08 15:27:53 (GMT)
commitfba5dc18009df4dad9f6e251ad9a3b8a8e1a2542 (patch)
tree258131ae32b8d09b52871a0dd2126960c3708eeb /Doc/library
parent73b56c8d57b6f5854a42197aec460ed9be984a5a (diff)
parent7cac2d8368c4ecaa3d5edd58d111c71eaa704eaa (diff)
downloadcpython-fba5dc18009df4dad9f6e251ad9a3b8a8e1a2542.zip
cpython-fba5dc18009df4dad9f6e251ad9a3b8a8e1a2542.tar.gz
cpython-fba5dc18009df4dad9f6e251ad9a3b8a8e1a2542.tar.bz2
Merge issue #16439: Fix markup in example for stdtypes.
Thanks to Yongzhi Pan.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/stdtypes.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 0366507..cd07fa7 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1832,11 +1832,11 @@ expression support in the :mod:`re` module).
>>> 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."