]> granicus.if.org Git - python/commitdiff
Fix issue12938 - Update the docstring of html.escape. Include the information on...
authorSenthil Kumaran <senthil@uthcode.com>
Mon, 12 Sep 2011 23:14:13 +0000 (07:14 +0800)
committerSenthil Kumaran <senthil@uthcode.com>
Mon, 12 Sep 2011 23:14:13 +0000 (07:14 +0800)
Lib/html/__init__.py

index 335d2148288fc15f8f24ce1d53387da772e2c452..02652ef73c312c9263a3394350c428a1bcbc09fb 100644 (file)
@@ -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)