Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Fix unicode error python2 #153

Merged
merged 2 commits into from
Oct 26, 2016

Conversation

Scorpil
Copy link
Contributor

@Scorpil Scorpil commented Dec 13, 2015

Since magic methods __add__ and __radd__ call str on input string, exception is thrown when input string is unicode with non-ascii characters. This PR fixes issue by properly encoding unicode into string on init.

@mrlannigan
Copy link

Can this be a thing that is moved forward?

@kennethreitz kennethreitz merged commit a190f64 into kennethreitz:master Oct 26, 2016
@mrlannigan
Copy link

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants