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

Python3 compatibility #205

Merged
merged 2 commits into from
Sep 7, 2018
Merged

Conversation

codeastar
Copy link
Contributor

The current utils.py encodes all the requestData to utf-8 on Python 3.x
It prompts "AttributeError: 'dict' object has no attribute 'encode'" issue for image upload case, which its value is a {'XMLPayload': ....} object.

encode utf-8 on string object only
replace 'basestring' with 'str'
@timotheus
Copy link
Owner

does #248 address this issue. Please confirm and I'll close this PR. Thanks!

@codeastar
Copy link
Contributor Author

Yes, it is about the removed basestring issue.

@timotheus timotheus merged commit 2646013 into timotheus:master Sep 7, 2018
timotheus added a commit that referenced this pull request May 17, 2021
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.

2 participants