summaryrefslogtreecommitdiff
path: root/fs/expose
diff options
context:
space:
mode:
authorrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2010-11-07 01:31:39 +0000
committerrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2010-11-07 01:31:39 +0000
commit8fcf4df8488130bdd5285a97dd2f2de8c87d7f55 (patch)
tree01bb8b6e7493cf82c168345c309ce26ea870d13e /fs/expose
parent739272ca040326f392917ba2540c14058e10f61b (diff)
downloadpyfilesystem-git-8fcf4df8488130bdd5285a97dd2f2de8c87d7f55.tar.gz
add module "fs.filelike" with utils for building file-like objects.
This is a local copy of the guts of my "filelike" module, re-licensed under the MIT license. This commit also uses it to fix a few edge-cases in various filesystem implementations (e.g. truncating StringIO objects).
Diffstat (limited to 'fs/expose')
-rw-r--r--fs/expose/sftp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/expose/sftp.py b/fs/expose/sftp.py
index 566d0e9..27f656c 100644
--- a/fs/expose/sftp.py
+++ b/fs/expose/sftp.py
@@ -29,7 +29,6 @@ import stat as statinfo
import time
import SocketServer as sockserv
import threading
-from StringIO import StringIO
import paramiko
@@ -37,6 +36,7 @@ from fs.base import flags_to_mode
from fs.path import *
from fs.errors import *
from fs.local_functools import wraps
+from fs.filelike import StringIO
# Default host key used by BaseSFTPServer