projects
/
rainbowstream.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
notify config changed in draw
[rainbowstream.git]
/
rainbowstream
/
py3patch.py
diff --git
a/rainbowstream/py3patch.py
b/rainbowstream/py3patch.py
index 83e5f0a1845bc4d781d2192a10f66ba71c77e208..6dc213fdf084d92ca029c14b0ac487f7ecfb9c7f 100644
(file)
--- a/
rainbowstream/py3patch.py
+++ b/
rainbowstream/py3patch.py
@@
-10,12
+10,9
@@
except:
from io import StringIO, BytesIO
# HTMLParser module
-
try:
from HTMLParser import HTMLParser
- def unescape(s):
- p = HTMLParser()
- return p.unescape(s)
+ unescape = HTMLParser().unescape
except:
from html import unescape