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

unicode is an undefined name in Python 3 #5

Closed
cclauss opened this issue Jan 7, 2018 · 1 comment
Closed

unicode is an undefined name in Python 3 #5

cclauss opened this issue Jan 7, 2018 · 1 comment

Comments

@cclauss
Copy link

cclauss commented Jan 7, 2018

unicode was removed from Python 3 because all strs are Unicode.

flake8 testing of https://github.com/cookieY/Yearning on Python 3.6.3

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./install/cursors.py:354:36: F821 undefined name 'unicode'
                if isinstance(msg, unicode):
                                   ^
1     F821 undefined name 'unicode'
@cookieY
Copy link
Owner

cookieY commented Jan 7, 2018

@cclauss thanks for your reminder. the cursors.py is part of the pymysql package. I think it was written for compatibility with python2 and python3。

@cclauss cclauss closed this as completed Jan 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants