summaryrefslogtreecommitdiff
path: root/fs/zipfs.py
diff options
context:
space:
mode:
authorwillmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f>2011-03-07 16:57:26 +0000
committerwillmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f>2011-03-07 16:57:26 +0000
commit4ae6f3a38c4f6f05e2a601842a69771c4ccf37db (patch)
treebc521b96fed53a901360abac1f1c5126c10ca953 /fs/zipfs.py
parent69ab86f7ed7578547195224a6c584c2163bc2f62 (diff)
downloadpyfilesystem-git-4ae6f3a38c4f6f05e2a601842a69771c4ccf37db.tar.gz
Fixes of some errors/warnings reported by PyDev and inline documentation
Diffstat (limited to 'fs/zipfs.py')
-rw-r--r--fs/zipfs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/zipfs.py b/fs/zipfs.py
index af143d0..55eaf75 100644
--- a/fs/zipfs.py
+++ b/fs/zipfs.py
@@ -151,7 +151,7 @@ class ZipFS(FS):
if path:
self._path_fs.makedir(path, recursive=True, allow_recreate=True)
else:
- dirpath, filename = pathsplit(path)
+ dirpath, _filename = pathsplit(path)
if dirpath:
self._path_fs.makedir(dirpath, recursive=True, allow_recreate=True)
f = self._path_fs.open(path, 'w')
@@ -191,7 +191,7 @@ class ZipFS(FS):
raise OperationFailedError("open file",
path=path,
msg="2 Zip file must be opened for writing ('w') or appending ('a')")
- dirname, filename = pathsplit(path)
+ dirname, _filename = pathsplit(path)
if dirname:
self.temp_fs.makedir(dirname, recursive=True, allow_recreate=True)