Lines Matching defs:tarname
45 tarname = support.findfile("testtar.tar")
61 tarname = tarname
72 tarname = gzipname
79 tarname = bz2name
86 tarname = xzname
97 self.tar = tarfile.open(self.tarname, mode=self.mode,
269 self.tar = tarfile.open(self.tarname, mode=self.mode)
378 self.assertTrue(tarfile.is_tarfile(self.tarname))
381 self.assertTrue(tarfile.is_tarfile(pathlib.Path(self.tarname)))
384 with open(self.tarname, "rb") as fobj:
388 with open(self.tarname, "rb") as fobj:
394 with open(self.tarname, "rb") as fobj:
398 with open(self.tarname, "rb") as fobj:
494 with open(self.tarname, "rb") as fobj:
501 with open(self.tarname, "rb") as fobj:
509 with open(self.tarname, "rb") as fobj:
519 fd = os.open(self.tarname, os.O_RDONLY)
527 tarname = os.fsencode(self.tarname)
528 with open(tarname, 'rb') as fobj:
535 tarname = pathlib.Path(self.tarname)
536 with tarfile.open(tarname, mode=self.mode) as tar:
538 self.assertEqual(tar.name, os.path.abspath(os.fspath(tarname)))
539 with self.taropen(tarname) as tar:
541 self.assertEqual(tar.name, os.path.abspath(os.fspath(tarname)))
542 with tarfile.TarFile.open(tarname, mode=self.mode) as tar:
544 self.assertEqual(tar.name, os.path.abspath(os.fspath(tarname)))
546 with tarfile.TarFile(tarname, mode='r') as tar:
548 self.assertEqual(tar.name, os.path.abspath(os.fspath(tarname)))
563 tar = tarfile.open(self.tarname, mode=self.mode)
575 with self.open(self.tarname) as fobj:
579 with tar.open(self.tarname, mode="r:", fileobj=fobj) as tar:
590 self.assertRaises(tarfile.ReadError, tarfile.open, tarname, self.mode)
591 with open(tarname, "rb") as fobj:
630 with tarfile.open(tarname, errorlevel=1, encoding="iso8859-1") as tar:
650 tar = tarfile.open(tarname, encoding="iso8859-1")
684 with tarfile.open(tarname, encoding="iso8859-1") as tar:
697 tarfile.open(tarname, encoding="iso8859-1") as tar:
708 tarfile.open(tarname, encoding="iso8859-1") as tar:
736 with tarfile.open(self.tarname) as tar:
748 tarfile.open(self.tarname)
813 tar1 = tarfile.open(tarname, encoding="iso8859-1")
870 tarfile.open(tarname, mode="r:" + self.suffix)
872 tarfile.open(tarname, mode="r|" + self.suffix)
874 tarfile.open(self.tarname, mode="r:")
876 tarfile.open(self.tarname, mode="r|")
877 testfunc(self.tarname, "r")
878 testfunc(self.tarname, "r:" + self.suffix)
879 testfunc(self.tarname, "r:*")
880 testfunc(self.tarname, "r|" + self.suffix)
881 testfunc(self.tarname, "r|*")
898 with open(tarname, "rb") as fobj:
1001 self.tar = tarfile.open(self.tarname, mode=self.mode,
1043 with open(tarname, "rb") as fobj:
1131 tar = tarfile.open(tarname, encoding="iso8859-1")
1155 tar = tarfile.open(tarname, encoding="iso8859-1")
2103 tar = tarfile.open(tarname, "r",
2231 with tarfile.open(tarname, encoding=encoding,
2251 with tarfile.open(tarname, encoding=encoding,
2263 self.tarname = tmpname
2264 if os.path.exists(self.tarname):
2265 os_helper.unlink(self.tarname)
2268 with tarfile.open(tarname, encoding="iso8859-1") as src:
2272 with tarfile.open(self.tarname, mode) as tar:
2283 with tarfile.open(self.tarname, "a", fileobj=fileobj) as tar:
2287 with tarfile.open(self.tarname, fileobj=fileobj) as tar:
2295 tarfile.open(self.tarname, "w:").close()
2307 with open(self.tarname, "rb") as fobj:
2322 with open(self.tarname, "wb") as fobj:
2734 with tarfile.open(tarname) as tar:
2741 tar = tarfile.open(tarname)
2750 with tarfile.open(tarname) as tar:
3041 tar = tarfile.open(tarname, mode='r', encoding="iso8859-1")
3146 tarinfo = tar.gettarinfo(tarname)
3174 tarfile.open(tarname, encoding="iso8859-1") as tar):
3688 with tarfile.TarFile.open(tarname) as tar:
3697 with tarfile.TarFile.open(tarname) as tar:
3706 with tarfile.TarFile.open(tarname) as tar:
3724 tar = tarfile.TarFile(tarname, 'r')
3740 tar = tarfile.TarFile(tarname, 'r')
3754 tar = TarSubclass(tarname, 'r')
3759 tar = tarfile.TarFile(tarname, 'r')
3894 testtarnames = [tarname]
3895 with open(tarname, "rb") as fobj:
3901 os_helper.unlink(c.tarname)
3902 testtarnames.append(c.tarname)
3903 with c.open(c.tarname, "wb") as tar: