Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fba5dc1

Browse files
committed
Merge issue #16439: Fix markup in example for stdtypes.
Thanks to Yongzhi Pan.
2 parents 73b56c8 + 7cac2d8 commit fba5dc1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,11 +1832,11 @@ expression support in the :mod:`re` module).
18321832

18331833
>>> import re
18341834
>>> def titlecase(s):
1835-
return re.sub(r"[A-Za-z]+('[A-Za-z]+)?",
1836-
lambda mo: mo.group(0)[0].upper() +
1837-
mo.group(0)[1:].lower(),
1838-
s)
1839-
1835+
... return re.sub(r"[A-Za-z]+('[A-Za-z]+)?",
1836+
... lambda mo: mo.group(0)[0].upper() +
1837+
... mo.group(0)[1:].lower(),
1838+
... s)
1839+
...
18401840
>>> titlecase("they're bill's friends.")
18411841
"They're Bill's Friends."
18421842

0 commit comments

Comments
 (0)