What steps will reproduce the problem?
1. Create an SFTP object using username and password
2. Try to pickle it
3. Try to load it. You will see an unpack error
This fixes it.
Index: fs/sftpfs.py
===================================================================
--- fs/sftpfs.py (revision 787)
+++ fs/sftpfs.py (working copy)
@@ -208,7 +208,7 @@
state = super(SFTPFS,self).__getstate__()
del state["_tlocal"]
if self._owns_transport:
- state['_transport'] = self._transport.getpeername()
+ state['_transport'] = self._transport.getpeername()[:2]
return state
def __setstate__(self,state):
Original issue reported on code.google.com by ad...@dmarkey.com on 8 May 2012 at 4:19
Original issue reported on code.google.com by
ad...@dmarkey.com
on 8 May 2012 at 4:19