diff options
Diffstat (limited to 'Lib/xml/sax/saxutils.py')
-rw-r--r-- | Lib/xml/sax/saxutils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/xml/sax/saxutils.py b/Lib/xml/sax/saxutils.py index 035715c..f55eef5 100644 --- a/Lib/xml/sax/saxutils.py +++ b/Lib/xml/sax/saxutils.py @@ -46,8 +46,7 @@ def unescape(data, entities={}): if entities: data = __dict_replace(data, entities) # must do ampersand last - data = data.replace("&", "&") - return data + return data.replace("&", "&") def quoteattr(data, entities={}): """Escape and quote an attribute value. |