Lines Matching defs:open
237 with open(filename, "rb") as fp:
765 "there is an open writing handle on it. "
775 "is an open writing handle on it. "
811 Is returned by ZipFile.open().
1223 """ Class with methods to open, read, write, close, list zip files.
1287 self.fp = io.open(file, filemode)
1475 with self.open(zinfo.filename, "r") as f:
1519 with self.open(name, "r", pwd) as fp:
1522 def open(self, name, mode="r", pwd=None, *, force_zip64=False):
1539 raise ValueError('open() requires mode "r" or "w"')
1563 "is an open writing handle on it. "
1632 "another write handle open on it. "
1747 with self.open(member, pwd=pwd) as source, \
1748 open(targetpath, "wb") as target:
1785 "Can't write to ZIP archive while an open writing handle exists"
1806 with open(filename, "rb") as src, self.open(zinfo, 'w') as dest:
1836 "Can't write to ZIP archive while an open writing handle exists."
1847 with self.open(zinfo, mode='w') as dest:
1897 "an open writing handle on it. "
2474 def open(self, mode='r', *args, pwd=None, **kwargs):
2477 of ``pathlib.Path.open()`` by passing arguments through
2485 stream = self.root.open(self.at, zip_mode, pwd=pwd)
2516 with self.open('r', encoding, *args, **kwargs) as strm:
2520 with self.open('rb') as strm: