TritonDataCenter / python-manta

Python SDK for Manta (community maintained)
MIT License
25 stars 18 forks source link

Removed MantaError when content passed to put_object is not str #38

Closed mnako closed 8 years ago

mnako commented 8 years ago

We cannot expect to pass the contents of arbitrary binary files as utf-8 strings.

Removed MantaError when content passed to put_object is not str. We're expecting bytes here. if utf-8 str is passed, it will be decoded in the try-catch.

@deserat I've tested that on both Py2 and Py3, as well as manually run a couple of use cases, but if you see any incompatibility with your recent work on Py3 compatibility, please let me know, and I will update accordingly.