Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import error: HTMLParser in Python 3 #7

Closed
gorgitko opened this issue Oct 11, 2016 · 2 comments
Closed

import error: HTMLParser in Python 3 #7

gorgitko opened this issue Oct 11, 2016 · 2 comments
Labels

Comments

@gorgitko
Copy link

In Python 3 is HTMLParser in html.parser

So to prevent import error I had to change in cli/dict.py:

line 16: import HTMLParser from html.parser import HTMLParser
line 27: pars = HTMLParser.HTMLParser() pars = HTMLParser()

@mcs07
Copy link
Owner

mcs07 commented Oct 11, 2016

Thanks for the report. This should be fixed by #6. I'll hopefully push a new version to PyPI this evening.

@mcs07 mcs07 closed this as completed Oct 11, 2016
@gorgitko
Copy link
Author

Just one more thing (I don't want to make new ticket for that):

cli/__init__.py line 55: jsonstring = json.dumps(records, indent=2, ensure_ascii=False).decode('utf-8')

This prevents the AttributeError: 'str' object has no attribute 'decode'

@mcs07 mcs07 added the bug label Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants