diff options
author | willmcgugan@gmail.com <willmcgugan@gmail.com@67cdc799-7952-0410-af00-57a81ceafa0f> | 2014-03-13 18:55:04 +0000 |
---|---|---|
committer | willmcgugan@gmail.com <willmcgugan@gmail.com@67cdc799-7952-0410-af00-57a81ceafa0f> | 2014-03-13 18:55:04 +0000 |
commit | 2bdc0be14c2572a88d01a0b830cc328c45d6bcd1 (patch) | |
tree | 6f0443dd19d77738d9f62c602baa1af30b0d0d5c /fs | |
parent | 221c3725f109ed5a6126c1f406cda68f55d95894 (diff) | |
download | pyfilesystem-2bdc0be14c2572a88d01a0b830cc328c45d6bcd1.tar.gz |
Applied patch to zipfs
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@888 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs')
-rw-r--r-- | fs/zipfs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/zipfs.py b/fs/zipfs.py index e499859..667407a 100644 --- a/fs/zipfs.py +++ b/fs/zipfs.py @@ -205,7 +205,8 @@ class ZipFS(FS): msg="1 Zip file must be opened for reading ('r') or appending ('a')") try: if hasattr(self.zf, 'open') and self._zip_file_string: - return self.zf.open(self._encode_path(path), "r") + #return self.zf.open(self._encode_path(path), "r") + return self.zf.open(self._encode_path(path), 'rU' if 'U' in mode else 'r') else: contents = self.zf.read(self._encode_path(path)) except KeyError: |