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

Add support for Python3 #71

Closed
josuebrunel opened this issue May 13, 2015 · 2 comments
Closed

Add support for Python3 #71

josuebrunel opened this issue May 13, 2015 · 2 comments
Assignees
Milestone

Comments

@josuebrunel
Copy link
Owner

_mYQL_ must support _Python3_

@josuebrunel josuebrunel self-assigned this May 13, 2015
@josuebrunel josuebrunel added this to the 2.0 milestone May 13, 2015
@josuebrunel
Copy link
Owner Author

Documentation is here

Explicit relative import

from tests import TestClass # Bad
...
from .tests import TestClass # Good

But seriously, absolute import is the thing.

from __future__ import absolute_import

Exception handling

except Exception, e: # Bad
...
except (Exception,) as e: # Good

Unittest

self.assertEquals # Bad
...
self.assertEqual # Good

@josuebrunel
Copy link
Owner Author

josuebrunel added a commit that referenced this issue May 22, 2015
josuebrunel added a commit that referenced this issue May 22, 2015
josuebrunel added a commit that referenced this issue May 22, 2015
josuebrunel added a commit that referenced this issue May 22, 2015
josuebrunel added a commit that referenced this issue May 22, 2015
@josuebrunel josuebrunel modified the milestones: 1.2.2, 2.0 May 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant