summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-10-28 18:09:41 (GMT)
committerFred Drake <fdrake@acm.org>2002-10-28 18:09:41 (GMT)
commit6d8905012c3dcaf8b18d16977b066a83b5c36e7d (patch)
tree3c3ce5280f3b087463ce9decd734f01bea6d2fe5
parent9142b1921619f97d75935163174c6035dea83596 (diff)
downloadcpython-6d8905012c3dcaf8b18d16977b066a83b5c36e7d.zip
cpython-6d8905012c3dcaf8b18d16977b066a83b5c36e7d.tar.gz
cpython-6d8905012c3dcaf8b18d16977b066a83b5c36e7d.tar.bz2
Minor simplification.
-rw-r--r--Lib/xml/sax/saxutils.py3
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("&amp;", "&")
- return data
+ return data.replace("&amp;", "&")
def quoteattr(data, entities={}):
"""Escape and quote an attribute value.