Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Moving to Py3 #378

Merged
merged 11 commits into from
Feb 25, 2020
Merged

Moving to Py3 #378

merged 11 commits into from
Feb 25, 2020

Conversation

iambibhas
Copy link
Contributor

Related to hasgeek/hgapp#39

@iambibhas iambibhas requested a review from jace February 14, 2020 12:08
@iambibhas iambibhas marked this pull request as ready for review February 18, 2020 18:47
Copy link
Member

@jace jace left a 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.

lastuser_core/models/user.py Outdated Show resolved Hide resolved
lastuser_core/models/user.py Outdated Show resolved Hide resolved
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,
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems so. works if we send string as well, but then urllib encodes it anyway.
Screen Shot 2020-02-20 at 10 47 33 AM

Copy link
Member

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.

Copy link
Contributor Author

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):

lastuser_oauth/views/login.py Show resolved Hide resolved
runserver.py Outdated Show resolved Hide resolved
@iambibhas iambibhas merged commit f6c8f81 into master Feb 25, 2020
@iambibhas iambibhas deleted the py3 branch February 25, 2020 06:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants