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

Makes the the trading.py example compatible with Python 3.7 #264

Open
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

NoahCardoza
Copy link

No description provided.

timotheus and others added 28 commits April 5, 2017 17:11
This reverts commit 38bb259.
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
ebaysdk/utils.py Outdated Show resolved Hide resolved
@@ -30,6 +30,12 @@
True: 'https',
}

# Added compatibility for Python 3
Copy link
Owner

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?

Copy link
Author

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.

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.

8 participants