diff options
Diffstat (limited to 'Lib/zipfile.py')
| -rw-r--r-- | Lib/zipfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 845c6a9..8c2950f 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -1002,7 +1002,7 @@ class ZipFile: # set the modified flag so central directory gets written # even if no files are added to the archive self._didModify = True - self.start_dir = 0 + self.start_dir = self.fp.tell() elif mode == 'a': try: # See if file is a zip file |
