diff --git a/Lib/xml/sax/saxutils.py b/Lib/xml/sax/saxutils.py index 035715c2891..f55eef57cc4 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.