A couple more values need converting from unicode to str in remote_file_exists() and upload().
Signed-off-by: Howard Johnson merlin@merlinthp.org
Code looks good to me.
How about
if isinstance(s, six.text_type): s = s.encode('utf-8')
Happy to change it, although I was matching the syntax lsedlar used in his previous fix :)
Given that we don't a good way to test this (that we would consistently use); I think it's better to stay as explicit as possible about what's going on.
I have rebased this on master and merged it via #200. Thank you for the patch!
Pull-Request has been closed by lsedlar
A couple more values need converting from unicode to str in
remote_file_exists() and upload().
Signed-off-by: Howard Johnson merlin@merlinthp.org