Merge pull request #692 from imran2140/fix-unicode-s3-key-listing
Fix unicode S3 key listing in Python 2
This commit is contained in:
commit
4d9a0f7dc6
2 changed files with 7 additions and 3 deletions
|
|
@ -46,6 +46,9 @@ def metadata_from_headers(headers):
|
|||
|
||||
|
||||
def clean_key_name(key_name):
|
||||
if six.PY2:
|
||||
return unquote(key_name.encode('utf-8')).decode('utf-8')
|
||||
|
||||
return unquote(key_name)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue