Home
last modified time | relevance | path

Searched refs:BadZipfile (Results 1 – 14 of 14) 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)
781 except BadZipfile:
809 raise BadZipfile("File is not a zip file")
811 raise BadZipfile, "File is not a zip file"
836 raise BadZipfile("Truncated central directory")
839 raise BadZipfile("Bad magic number for central directory")
901 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/Misc/NEWS.d/
D2.7.1.rst92 'a' or 'w' and then closed without adding any files. Raise BadZipfile
D2.7.1rc1.rst775 when reading a file from a ZIP archive, its CRC is checked and a BadZipfile
D2.7.4rc1.rst1058 ZipFile now raises BadZipfile when opens a ZIP file with an incomplete "End
D2.7a1.rst2293 ZipFile now raises BadZipfile (instead of an IOError) when opening an empty
/external/avb/tools/
Dat_auth_unlock.py369 except (IOError, ValueError, zipfile.BadZipfile) as e:
/external/tensorflow/tensorflow/python/keras/integration_test/
Dmulti_worker_tutorial_test.py74 except zipfile.BadZipfile as e:
/external/avb/test/
Dat_auth_unlock_unittest.py68 with self.assertRaises(zipfile.BadZipfile):
/external/python/cpython2/Doc/library/
Dzipfile.rst29 .. exception:: BadZipfile
/external/python/cpython3/Doc/library/
Dzipfile.rst35 .. exception:: BadZipfile
/external/python/cpython3/Lib/
Dzipfile.py52 error = BadZipfile = BadZipFile # Pre-3.2 compatibility names
/external/python/cpython3/Misc/
DHISTORY11699 deprecate the old name ``zipfile.BadZipfile``.
11770 BadZipfile (rather than IOError) when opening small non-ZIP files.
12527 BadZipfile error is raised if it doesn't match (as used to be the case in
15408 - Issue #6511: ZipFile now raises BadZipfile (instead of an IOError) when
21445 - ZipFile.testzip() now only traps BadZipfile exceptions. Previously,
/external/python/cpython2/Misc/
DHISTORY4061 - ZipFile.testzip() now only traps BadZipfile exceptions. Previously,