autopep8 and bumped version
[rainbowstream.git] / rainbowstream / py3patch.py
index 604298411069fd7f6c0a678f09928c24c38ba004..6dc213fdf084d92ca029c14b0ac487f7ecfb9c7f 100644 (file)
@@ -10,11 +10,11 @@ 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
 if sys.version[0] == "3":