[Python-checkins] cpython (3.2): Fix issue12938 - Update the docstring of html.escape. Include the information

senthil.kumaran python-checkins at python.org
Tue Sep 13 01:14:59 CEST 2011


http://hg.python.org/cpython/rev/bc5b96c92770
changeset:   72373:bc5b96c92770
branch:      3.2
parent:      72370:8f6d958f95c2
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Tue Sep 13 07:14:13 2011 +0800
summary:
  Fix issue12938 - Update the docstring of html.escape. Include the information on single quote.

files:
  Lib/html/__init__.py |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Lib/html/__init__.py b/Lib/html/__init__.py
--- a/Lib/html/__init__.py
+++ b/Lib/html/__init__.py
@@ -13,7 +13,8 @@
     """
     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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list