Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6d89050

Browse files
committed
Minor simplification.
1 parent 9142b19 commit 6d89050

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/xml/sax/saxutils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ def unescape(data, entities={}):
4646
if entities:
4747
data = __dict_replace(data, entities)
4848
# must do ampersand last
49-
data = data.replace("&", "&")
50-
return data
49+
return data.replace("&", "&")
5150

5251
def quoteattr(data, entities={}):
5352
"""Escape and quote an attribute value.

0 commit comments

Comments
 (0)