Lines Matching refs:fileobj
452 with tarfile.open(fileobj=fobj, mode=self.mode) as tar:
461 tar = tarfile.open(fileobj=fobj, mode=self.mode)
469 with tarfile.open(fileobj=fobj, mode=self.mode) as tar:
478 with tarfile.open(fileobj=fobj, mode=self.mode) as tar:
486 with tarfile.open(fileobj=fobj, mode=self.mode) as tar:
535 with tar.open(self.tarname, mode="r:", fileobj=fobj) as tar:
549 fileobj=fobj, mode=self.mode)
680 self.assertTrue(tar.fileobj.closed)
802 tar = tarfile.open(name, mode, fileobj=f)
974 self.tar.fileobj.seek(offset)
975 fobj = io.BytesIO(self.tar.fileobj.read(3 * 512))
977 tarfile.open(name="foo.tar", fileobj=fobj)
1100 with tarfile.open(fileobj=fobj, mode=self.mode) as tar:
1429 tar = tarfile.open(tmpname, self.mode, fileobj=f,
2105 def _add_testfile(self, fileobj=None): argument
2106 with tarfile.open(self.tarname, "a", fileobj=fileobj) as tar:
2109 def _test(self, names=["bar"], fileobj=None): argument
2110 with tarfile.open(self.tarname, fileobj=fileobj) as tar:
2126 self._test(fileobj=fobj)
2135 self._test(names=["foo", "bar"], fileobj=fobj)
2571 with tarfile.open(fileobj=fobj, mode="w") as tar:
2633 tarfile.open(fileobj=MyBytesIO(data[:x]), mode=mode)