projects
/
rainbowstream.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
autopep8 and bumped version
[rainbowstream.git]
/
rainbowstream
/
py3patch.py
diff --git
a/rainbowstream/py3patch.py
b/rainbowstream/py3patch.py
index
83e5f0a
..
6dc213f
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