notify config changed in draw
[rainbowstream.git] / rainbowstream / py3patch.py
index 05fe7ff469cba4ce2fc2307143dfba37000e2465..6dc213fdf084d92ca029c14b0ac487f7ecfb9c7f 100644 (file)
@@ -9,6 +9,13 @@ try:
 except:
     from io import StringIO, BytesIO
 
+# HTMLParser module
+try:
+    from HTMLParser import HTMLParser
+    unescape = HTMLParser().unescape
+except:
+    from html import unescape
+
 # raw_input and map functiion behaviour
 if sys.version[0] == "3":
     raw_input = input