Kaydet (Commit) fba5dc18 authored tarafından Andrew Svetlov's avatar Andrew Svetlov

Merge issue #16439: Fix markup in example for stdtypes.

Thanks to Yongzhi Pan.
......@@ -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."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment