-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add python six module for python compatibility #20
Conversation
@@ -1,11 +1,12 @@ | |||
import requests | |||
import six | |||
|
|||
from patreon.jsonapi.parser import JSONAPIParser | |||
from patreon.jsonapi.url_util import build_url | |||
from patreon.schemas import campaign | |||
from patreon.utils import user_agent_string | |||
from patreon.version_compatibility.utc_timezone import utc_timezone |
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.
Can you get this from six.moves
as well? Maybe version_compatibility
can go away.
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.
I unfortunately didn't find any six documentation for timezone compatibility
I don't see a change to requirements.txt here. You'll want to update it with |
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.
tiny comment! otherwise looks great 💯
patreon/api.py
Outdated
raise Exception( | ||
'Provided cursor path did not result in a link', current_dict | ||
) | ||
if type(current_dict) != six.text_type: |
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.
let's just replace type(current_dict) != str
on line 73 with this check.
This reverts commit 00fc7b8.
Addressing issue #19 Error in extract_cursor() method (#19)
Problem:
Solution: