Minor simplification.

This commit is contained in:
Fred Drake 2002-10-28 18:09:41 +00:00
parent 9142b19216
commit 6d8905012c
1 changed files with 1 additions and 2 deletions

View File

@ -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.