-
Notifications
You must be signed in to change notification settings - Fork 30
Moving to Py3 #378
Moving to Py3 #378
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problem: change in tests from comparing items in a list to just the lengths of the list. These should be reverted. If there is an ordering problem, cast to sets.
Other small changes required.
key.encode('utf-8') if isinstance(key, unicode) else key, | ||
value.encode('utf-8') if isinstance(value, unicode) else value, | ||
key.encode('utf-8') if isinstance(key, str) else key, | ||
value.encode('utf-8') if isinstance(value, str) else value, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is .encode
still required with urllib.parse
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only pending issue. I don't know enough to comment, so your call. If this is working, this PR can be merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function has a test and that's passing.
def test_make_redirect_url(self): |
Related to hasgeek/hgapp#39