(self, pathfmt, zfile)
| 54 | return zipfile.ZipFile(*self.args) |
| 55 | |
| 56 | def write(self, pathfmt, zfile): |
| 57 | # 'NameToInfo' is not officially documented, but it's available |
| 58 | # for all supported Python versions and using it directly is a lot |
| 59 | # faster than calling getinfo() |
| 60 | if self.files: |
| 61 | self.write_extra(pathfmt, zfile, self.files) |
| 62 | self.files = None |
| 63 | if pathfmt.filename not in zfile.NameToInfo: |
| 64 | zfile.write(pathfmt.temppath, pathfmt.filename) |
| 65 | pathfmt.delete = self.delete |
| 66 | |
| 67 | def write_fast(self, pathfmt): |
| 68 | if self.zfile is None: |
no test coverage detected