GitHub user pzrq opened a pull request:
https://github.com/apache/libcloud/pull/408
Python 3 Error: "Invalid argument %r for b()" when using
upload_object_via_stream
https://issues.apache.org/jira/browse/LIBCLOUD-639
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mathspace/libcloud 639_bytes_iterator
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/libcloud/pull/408.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #408
----
commit f73abb13436cc3cf51d4a2f7054c683312f0f51d
Author: Peter Schmidt <[email protected]>
Date: 2014-12-01T06:28:20Z
[LIBCLOUD-639] Add erroring test for this Python 3 bytes issue so I don't
need to explain as much magic in an earlier test.
commit 7eaa0a6447c1eb20e31595be6b60c446cef85a01
Author: Peter Schmidt <[email protected]>
Date: 2014-12-01T06:28:58Z
Fix test under Python 3.4 at least.
http://stackoverflow.com/a/21017834
commit 776f6e5b5496f896f8b238d1d6b26d1d04a52e54
Author: Peter Schmidt <[email protected]>
Date: 2014-12-01T07:48:49Z
Typo missing i.
commit fe6cca9405a8958db6a5f5b795792cbfef37df41
Author: Peter Schmidt <[email protected]>
Date: 2014-12-02T01:56:11Z
Don't send one byte at a time, read the iterator in chunks and fill the
chunks, otherwise it turns a 1.6MB file into more than 400MB (when I gave up
and killed the request).
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---