Skip to content

Conversation

@jogo
Copy link

@jogo jogo commented Feb 9, 2018

Add python 3 support, tested via tox on both python2.7 and 3.6

Backport of jehiah#23

jogo added 6 commits February 8, 2018 16:04
In order to make it easy to test against python2 and python3 use tox.

Also update .gitignore to cover related files
* use print from future
* new notation for longs
* Stop using decode('utf8') in tests
* str.lower() instead of string.lower(str)
Add python3 support using six.
So https://github.com/brettcannon/caniusepython3 will detect urlnorm as
supporting python3.
new version supports python3
from __future__ import absolute_import
from six import unichr
import six
from six.moves import range
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you consolidate these six imports?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why its done this way, but this is what python-modernize automatically did

@jogo jogo merged commit 037c910 into pinterest:master Feb 9, 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

Successfully merging this pull request may close these issues.

2 participants