-
Notifications
You must be signed in to change notification settings - Fork 326
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
Makes the the trading.py example compatible with Python 3.7 #264
base: master
Are you sure you want to change the base?
Conversation
This reverts commit 38bb259.
Added str conversion of siteid
encode utf-8 on string object only
replace 'basestring' with 'str'
Add an option for domain to sample/findings.py so it can work with sandbox keys
Make compatible with python 3
updated trading sample
Revert "Make compatible with python 3"
Python3 compatibility
@@ -30,6 +30,12 @@ | |||
True: 'https', | |||
} | |||
|
|||
# Added compatibility for Python 3 |
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 thought we had python 3 support covered already. Can you supply breaking test case that your commit is fixing?
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 was getting errors regarding basestring
, and it appeared to be trying to .encode("utf-8")
a dict
. The test case was trying to run the example itself, uploading an image from the filesystem. At least on Mac OS High Sierra. I can reclone and run a few tests to double check that though. I'll get back to you ASAP.
No description provided.