From: Andrew Svetlov <andrew.svetlov@gmail.com>
Date: Thu, 8 Nov 2012 15:26:53 +0000 (+0200)
Subject: Issue #16439: Fix markup in example for stdtypes.
X-Git-Tag: v3.3.1rc1~664^2
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c90436d6427981c52a181fd7c94d16fa1ce02cb;p=python

Issue #16439: Fix markup in example for stdtypes.

Thanks to Yongzhi Pan.
---

diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 6e6e8ce51a..1d7467d2b5 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1390,11 +1390,11 @@ functions based on regular expressions.
 
         >>> 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."