Lines Matching refs:ZipInfo
464 # mode 0600, when they are passed a name rather than a ZipInfo
1154 # pretend zipfile.ZipInfo.from_file was used to get the name and filesize
1155 info = zipfile.ZipInfo("text.txt")
1182 # pretend zipfile.ZipInfo.from_file was used to get the name and filesize
1183 info = zipfile.ZipInfo("text.txt")
1650 zinfo = zipfile.ZipInfo()
1714 zinfo = zipfile.ZipInfo(data)
2098 zipfile.ZipInfo, 'seventies', (1979, 1, 1, 0, 0, 0))
2101 """Before bpo-26185, repr() on empty ZipInfo object was failing."""
2102 zi = zipfile.ZipInfo(filename="empty")
2103 self.assertEqual(repr(zi), "<ZipInfo filename='empty' file_size=0>")
2107 zi = zipfile.ZipInfo()
2882 old_zinfo = zipfile.ZipInfo("directory4/")
2899 zf.writestr(zipfile.ZipInfo('directory/'), '')
2926 zi = zipfile.ZipInfo.from_file(__file__)
2932 zi = zipfile.ZipInfo.from_file(pathlib.Path(__file__))
2938 zi = zipfile.ZipInfo.from_file(os.fsencode(__file__), 'test')
2945 zi = zipfile.ZipInfo.from_file(f.fileno(), 'test')
2952 zi = zipfile.ZipInfo.from_file(dirpath, 'stdlib_tests')