upload to empty container broken under python 3

Bug #1497331 reported by Marco M
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
New
Undecided
Unassigned

Bug Description

In shell.py, when a warning is received from the server, a concatenation fails:

    if error.http_response_content:
        if msg:
            msg += ': '
        msg += error.http_response_content[:60]
    msg = ': %s' % msg

because http_response_content is of type bytes.

Python 2 - Warning: failed to create container 'foo': 409 Conflict: BucketAlreadyExists
Python 3 - TypeError: Can't convert 'bytes' object to str implicitly

Marco M (mmawaw)
description: updated
Revision history for this message
Cheng Li (shcli) wrote :

it seems that this bug has been fixed by someone

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.