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

leverage six package for version compatibility #163

Open
laroque opened this issue Oct 24, 2018 · 0 comments
Open

leverage six package for version compatibility #163

laroque opened this issue Oct 24, 2018 · 0 comments

Comments

@laroque
Copy link
Member

laroque commented Oct 24, 2018

The six package is specifically made for compatibility between python 2 and 3 (2*3 = 6). We use should make use of this for as long as we're still using/supporting python 2. Of particular use, six.string_types is the right check when testing if something is a string (python 2 and 3 have rather different notions about what it means to be a "string" or "unicode" object).

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

1 participant