summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-09-12 23:14:39 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2011-09-12 23:14:39 (GMT)
commite012c02a5cd9efc81788948d0b2e501fa351bef6 (patch)
treedbe612e06f5952ba56510bb53aff8ff0578d3a0b /Lib
parentb7a690aeb43da6e873a60456d22517c4bd46e573 (diff)
parentd71bbf9fd5562ed50ebce993e1137ae7de0589f7 (diff)
downloadcpython-e012c02a5cd9efc81788948d0b2e501fa351bef6.zip
cpython-e012c02a5cd9efc81788948d0b2e501fa351bef6.tar.gz
cpython-e012c02a5cd9efc81788948d0b2e501fa351bef6.tar.bz2
merge from 3.2
Diffstat (limited to 'Lib')
-rw-r--r--Lib/html/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/html/__init__.py b/Lib/html/__init__.py
index 335d214..02652ef 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)