Looks like closing() was being used incorrectly. Fixes Issue 124

parent 2c1dc391
......@@ -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':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment