~james-w/+junk/swift-sync

Viewing all changes in revision 4.

  • Committer: James Westby
  • Date: 2014-09-22 13:53:34 UTC
  • Revision ID: james.westby@canonical.com-20140922135334-zeckgvot6a9xc40d
Use StringIO to keep compatibility with old version of swiftlib.

They older versions use httplib, and if you pass a string as a body
they expect it to be unicode. We can't be sure how to decode every file.

We instead pass as a StringIO, so that it just sends the bytes.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: