libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomaz Muraus (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LIBCLOUD-429) Unicode filenames on Python 2 cause urlquote to fail
Date Mon, 04 Nov 2013 20:56:19 GMT

    [ https://issues.apache.org/jira/browse/LIBCLOUD-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13813256#comment-13813256
] 

Tomaz Muraus commented on LIBCLOUD-429:
---------------------------------------

Just a couple of more things:

1. I've reverted to a different approach (https://git-wip-us.apache.org/repos/asf?p=libcloud.git;a=commitdiff;h=4b755a8bc089a74907ab0efea70d3d41dd1072f5)
which also works under Python 2.5 because unicode_literals is not available there and it broke
our build.

2. There were some lint issues, next time please run tox -e lint

> Unicode filenames on Python 2 cause urlquote to fail
> ----------------------------------------------------
>
>                 Key: LIBCLOUD-429
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-429
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Storage
>    Affects Versions: 0.13.2
>         Environment: Python 2.6, 2.7
>            Reporter: Michael Farrell
>
> Using filenames (or anything that urlquote is passed) on Python 2 cause an exception:
> {code}
>   File "/usr/lib/python2.7/urllib.py", line 1268, in quote
>     return ''.join(map(quoter, s))
> KeyError: u'\xe9'
> {code}
> There is a compatibility module {{libcloud.utils.py3}} which is supposed to handle compatibility
issues between the two Python versions.
> I've written a test case for this error and a patch.  It appears to function correctly
on Python 2.6, 2.7 and 3.3.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message