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
commiteda4f0c2c4a33faf26c93b514aae2be4628710c1 (patch)
treebc521b96fed53a901360abac1f1c5126c10ca953 /fs/zipfs.py
parent9da556e72ef2fe21d1a8891c8fb275e6c69e96d9 (diff)
downloadpyfilesystem-eda4f0c2c4a33faf26c93b514aae2be4628710c1.tar.gz
Fixes of some errors/warnings reported by PyDev and inline documentation
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@644 67cdc799-7952-0410-af00-57a81ceafa0f
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)