diff options
author | Fred Drake <fdrake@acm.org> | 2002-10-28 18:09:41 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-10-28 18:09:41 (GMT) |
commit | 6d8905012c3dcaf8b18d16977b066a83b5c36e7d (patch) | |
tree | 3c3ce5280f3b087463ce9decd734f01bea6d2fe5 | |
parent | 9142b1921619f97d75935163174c6035dea83596 (diff) | |
download | cpython-6d8905012c3dcaf8b18d16977b066a83b5c36e7d.zip cpython-6d8905012c3dcaf8b18d16977b066a83b5c36e7d.tar.gz cpython-6d8905012c3dcaf8b18d16977b066a83b5c36e7d.tar.bz2 |
Minor simplification.
-rw-r--r-- | Lib/xml/sax/saxutils.py | 3 |
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("&", "&") - return data + return data.replace("&", "&") def quoteattr(data, entities={}): """Escape and quote an attribute value. |