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