From: Fred Drake Date: Mon, 28 Oct 2002 18:09:41 +0000 (+0000) Subject: Minor simplification. X-Git-Tag: v2.3c1~3660 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d8905012c3dcaf8b18d16977b066a83b5c36e7d;p=python Minor simplification. --- diff --git a/Lib/xml/sax/saxutils.py b/Lib/xml/sax/saxutils.py index 035715c289..f55eef57cc 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.