From 6d8905012c3dcaf8b18d16977b066a83b5c36e7d Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 28 Oct 2002 18:09:41 +0000 Subject: [PATCH] Minor simplification. --- Lib/xml/sax/saxutils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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.