You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No longer supports buffer() objects where bytes are expected #343
Previous versions of Paramiko allowed passing in buffer() objects of bytestrings when e.g. writing to a file. In the last version(s), this is no longer possible:
File "/usr/lib/python2.7/dist-packages/paramiko/file.py", line 324, in write
data = b(data)
File "/usr/lib/python2.7/dist-packages/paramiko/py3compat.py", line 43, in b
raise TypeError("Expected unicode or bytes, got %r" % s)
TypeError: Expected unicode or bytes, got <read-only buffer for 0x7fbbb3f348f0, size 5242880, offset 0 at 0x7fbbcb8599b0>
Activity
andrewsomething commentedon Jul 4, 2014
This was previously reported as #285
bitprophet commentedon Aug 9, 2014
Yup, looks like dupe of #285, thanks @andrewsomething!
Support passing in "buffer" objects again where bytestrings are expec…
Support passing in "buffer" objects again where bytestrings are expec…