]> granicus.if.org Git - python/commitdiff
Minor simplification.
authorFred Drake <fdrake@acm.org>
Mon, 28 Oct 2002 18:09:41 +0000 (18:09 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 28 Oct 2002 18:09:41 +0000 (18:09 +0000)
Lib/xml/sax/saxutils.py

index 035715c289141d10afc4439d905fd21d2a9f3207..f55eef57cc4306bd8cba472c0db8f68b51dd5609 100644 (file)
@@ -46,8 +46,7 @@ def unescape(data, entities={}):
     if entities:
         data = __dict_replace(data, entities)
     # must do ampersand last
-    data = data.replace("&amp;", "&")
-    return data
+    return data.replace("&amp;", "&")
 
 def quoteattr(data, entities={}):
     """Escape and quote an attribute value.