Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

allow unicode URLs on Python 2 #2267

Merged
merged 1 commit into from
Oct 6, 2014
Merged

Conversation

minrk
Copy link
Contributor

@minrk minrk commented Oct 5, 2014

on Python 2 u'é'.decode('utf8') fails with UnicodeEncodeError, but only AttributeError is caught.

This only calls decode on known bytes objects.

includes a test that succeeds on 2.4.1 and fails on 2.4.2

on Python 2 u'é'.decode('utf8') fails with UnicodeEncodeError,
but only AttributeError is caught.

This only calls decode on known bytes objects.
@sigmavirus24
Copy link
Contributor

cc @buttscicles

@sigmavirus24
Copy link
Contributor

FWIW this works for me.

kennethreitz added a commit that referenced this pull request Oct 6, 2014
allow unicode URLs on Python 2
@kennethreitz kennethreitz merged commit 4ec26da into psf:master Oct 6, 2014
@minrk minrk deleted the unicode-url-py2 branch October 6, 2014 18:09
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 8, 2021
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