codex-team/html-slacker

Python 2 compatibility needed

austinkbarry opened this issue · 2 comments

Not python 2 compatible. Added the following to make it work..

try:
from html.parser import HTMLParser
from html.entities import name2codepoint
except:
from HTMLParser import HTMLParser
from htmlentitydefs import name2codepoint

n0str commented

@austinkbarry, thank you for the comment. We appreciate reports about actual bugs.

Our code is really not Python2 compatible as mentioned in #2

If you have time, it would be amazing to get a pull request with your fix, otherwise, we'll try to fix this issue soon.

n0str commented

closed in #5