commit | 6d8905012c3dcaf8b18d16977b066a83b5c36e7d | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Mon Oct 28 18:09:41 2002 +0000 |
committer | Fred Drake <fdrake@acm.org> | Mon Oct 28 18:09:41 2002 +0000 |
tree | 3c3ce5280f3b087463ce9decd734f01bea6d2fe5 | |
parent | 9142b1921619f97d75935163174c6035dea83596 [diff] [blame] |
Minor simplification.
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 @@ 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.