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

accept unicode strings in parse_string() under Python 2 #49

Merged
merged 1 commit into from May 31, 2015

Conversation

drewbrew
Copy link
Contributor

In Python 3, strings are unicode, so this problem does not exist, but in Python 2, if you call parse_string(u"20 GiB"), it'll raise a ValueError.

In Python 3, str == unicode, so this problem does not exist, but in
Python 2, if you call `parse_string(u"20 GiB")`, it'll raise a
ValueError.
@drewbrew drewbrew force-pushed the support-unicode-in-parse-string branch from 9e78dbc to 05e9729 Compare May 28, 2015 18:19
@tbielawa tbielawa self-assigned this May 29, 2015
@tbielawa
Copy link
Owner

Reviewed. Looks good!

Thanks @drewbrew merged!

tbielawa added a commit that referenced this pull request May 31, 2015
accept unicode strings in parse_string() under Python 2
@tbielawa tbielawa merged commit b568258 into tbielawa:master May 31, 2015
@drewbrew drewbrew deleted the support-unicode-in-parse-string branch June 1, 2015 14:19
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.

None yet

2 participants