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

common: Fixing mishandling of environments with unicode values #342

Merged
merged 1 commit into from
Apr 19, 2016

Conversation

jbohren
Copy link
Contributor

@jbohren jbohren commented Apr 19, 2016

It looks like shlex.split behaves very differently on Python 2.7 and Python 3.4. This patch is an awkward solution that defines a compatibility wrapper at import time.There are so many places that unicode/string handling is different between Python2 and Python3, and it'd be great to nail them all down in a cleaner way.

Fixes #338.

@jbohren jbohren added the bug label Apr 19, 2016
@jbohren jbohren modified the milestone: Beta 2 Patches Apr 19, 2016
@wjwwood
Copy link
Member

wjwwood commented Apr 19, 2016

I've run into a similar issue with shlex. In fact I've "backported" it in the past by copy-pasting the version from Python 3.5 into my code base and using it conditionally if the version < 3.5.

This looks good to me.

@wjwwood wjwwood merged commit 0346021 into master Apr 19, 2016
@wjwwood wjwwood deleted the env-unicode-fix branch April 19, 2016 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants