diff options
author | gcode@loowis.durge.org <gcode@loowis.durge.org@67cdc799-7952-0410-af00-57a81ceafa0f> | 2012-08-13 23:35:31 +0000 |
---|---|---|
committer | gcode@loowis.durge.org <gcode@loowis.durge.org@67cdc799-7952-0410-af00-57a81ceafa0f> | 2012-08-13 23:35:31 +0000 |
commit | 93dc475b085b318e96ad1e2047580968e692c3ed (patch) | |
tree | 5b9307d402bec334b6bf3e3ca99531861423c82d | |
parent | a34433e2bb96a96bcdbcf1f4d0d334aef9347e78 (diff) | |
download | pyfilesystem-93dc475b085b318e96ad1e2047580968e692c3ed.tar.gz |
Looks like closing() was being used incorrectly. Fixes Issue 124
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@805 67cdc799-7952-0410-af00-57a81ceafa0f
-rw-r--r-- | fs/zipfs.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/zipfs.py b/fs/zipfs.py index 968b0e2..0c6be3d 100644 --- a/fs/zipfs.py +++ b/fs/zipfs.py @@ -8,7 +8,6 @@ A FS object that represents the contents of a Zip file import datetime import os.path -from contextlib import closing from fs.base import * from fs.path import * @@ -205,7 +204,7 @@ class ZipFS(FS): contents = self.zf.read(self._encode_path(path)) except KeyError: raise ResourceNotFoundError(path) - return closing(StringIO(contents)) + return StringIO(contents) if 'w' in mode: if self.zip_mode not in 'wa': |