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

python 3 compatability #1

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

python 3 compatability #1

wants to merge 1 commit into from

Conversation

nobane
Copy link

@nobane nobane commented Feb 25, 2020

No description provided.

@@ -36,10 +37,13 @@ def is_valid_request(self, request, parameters={},
headers=headers,
parameters=parameters)

if isinstance(oauth_request['oauth_signature'], six.string_types):
oauth_request['oauth_signature'] = oauth_request['oauth_signature'].encode('utf-8')
Copy link
Author

Choose a reason for hiding this comment

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

Everything in this PR was autogenerated except for this. This is needed to ensure the signature comparison happens correctly. Things worked previously because in python2:

>>> 'foo' == b'foo'
True

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.

1 participant