Home
last modified time | relevance | path

Searched refs:BadZipfile (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Lib/
Dzipfile.py20 class BadZipfile(Exception): class
30 error = BadZipfile # The exception raised by this module
177 raise BadZipfile("zipfiles that span multiple disks are not supported")
647 raise BadZipfile("Bad CRC-32 for file %r" % self.name)
782 except BadZipfile:
811 raise BadZipfile("File is not a zip file")
813 raise BadZipfile, "File is not a zip file"
839 raise BadZipfile("Truncated central directory")
842 raise BadZipfile("Bad magic number for central directory")
904 except BadZipfile:
[all …]
/external/chromium-trace/catapult/third_party/zipfile/
Dzipfile_2_7_13.py20 class BadZipfile(Exception): class
30 error = BadZipfile # The exception raised by this module
177 raise BadZipfile("zipfiles that span multiple disks are not supported")
647 raise BadZipfile("Bad CRC-32 for file %r" % self.name)
782 except BadZipfile:
811 raise BadZipfile("File is not a zip file")
813 raise BadZipfile, "File is not a zip file"
839 raise BadZipfile("Truncated central directory")
842 raise BadZipfile("Bad magic number for central directory")
904 except BadZipfile:
[all …]
/external/python/cpython2/Lib/test/
Dtest_zipfile.py634 raise zipfile.BadZipfile()
635 except zipfile.BadZipfile:
969 except zipfile.BadZipfile:
1004 self.assertRaises(zipfile.BadZipfile, zipfile.ZipFile, fp)
1045 self.assertRaises(zipfile.BadZipfile, zipfile.ZipFile, TESTFN)
1049 self.assertRaises(zipfile.BadZipfile, zipfile.ZipFile, TESTFN)
1204 self.assertRaises(zipfile.BadZipfile, zipf.read, 'afile')
1209 self.assertRaises(zipfile.BadZipfile, corrupt_file.read)
1215 with self.assertRaises(zipfile.BadZipfile):
1253 except zipfile.BadZipfile:
[all …]
/external/python/cpython2/Doc/library/
Dzipfile.rst29 .. exception:: BadZipfile
/external/python/cpython2/Misc/
DNEWS3446 - Issue #4844: ZipFile now raises BadZipfile when opens a ZIP file with an
5413 BadZipfile (rather than IOError) when opening small non-ZIP files.
5704 and a BadZipfile error is raised if it doesn't match (as used to be the
7984 - Issue #6511: ZipFile now raises BadZipfile (instead of an IOError) when
DHISTORY4061 - ZipFile.testzip() now only traps BadZipfile exceptions. Previously,