bumped veresion
[rainbowstream.git] / rainbowstream / py3patch.py
index 05fe7ff469cba4ce2fc2307143dfba37000e2465..0dd6be5f3b7c85a77fb56ea6f98e647848e6cb1d 100644 (file)
@@ -9,7 +9,14 @@ try:
 except:
     from io import StringIO, BytesIO
 
-# raw_input and map functiion behaviour
+# HTMLParser module
+try:
+    from HTMLParser import HTMLParser
+    unescape = HTMLParser().unescape
+except:
+    from html import unescape
+
+# raw_input and map function behaviour
 if sys.version[0] == "3":
     raw_input = input
     lmap = lambda f, a: list(map(f, a))