From: Senthil Kumaran Date: Mon, 12 Sep 2011 23:14:13 +0000 (+0800) Subject: Fix issue12938 - Update the docstring of html.escape. Include the information on... X-Git-Tag: v3.2.3rc1~569 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d71bbf9fd5562ed50ebce993e1137ae7de0589f7;p=thirdparty%2FPython%2Fcpython.git Fix issue12938 - Update the docstring of html.escape. Include the information on single quote. --- diff --git a/Lib/html/__init__.py b/Lib/html/__init__.py index 335d2148288f..02652ef73c31 100644 --- a/Lib/html/__init__.py +++ b/Lib/html/__init__.py @@ -13,7 +13,8 @@ def escape(s, quote=True): """ Replace special characters "&", "<" and ">" to HTML-safe sequences. If the optional flag quote is true (the default), the quotation mark - character (") is also translated. + characters, both double quote (") and single quote (') characters are also + translated. """ if quote: return s.translate(_escape_map_full)