Searched refs:BadZipfile (Results 1 – 14 of 14) sorted by relevance
/external/python/cpython2/Lib/ |
D | zipfile.py | 20 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/ |
D | test_zipfile.py | 634 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/ |
D | 2.7.1.rst | 92 'a' or 'w' and then closed without adding any files. Raise BadZipfile
|
D | 2.7.1rc1.rst | 775 when reading a file from a ZIP archive, its CRC is checked and a BadZipfile
|
D | 2.7.4rc1.rst | 1058 ZipFile now raises BadZipfile when opens a ZIP file with an incomplete "End
|
D | 2.7a1.rst | 2293 ZipFile now raises BadZipfile (instead of an IOError) when opening an empty
|
/external/avb/tools/ |
D | at_auth_unlock.py | 369 except (IOError, ValueError, zipfile.BadZipfile) as e:
|
/external/tensorflow/tensorflow/python/keras/integration_test/ |
D | multi_worker_tutorial_test.py | 74 except zipfile.BadZipfile as e:
|
/external/avb/test/ |
D | at_auth_unlock_unittest.py | 68 with self.assertRaises(zipfile.BadZipfile):
|
/external/python/cpython2/Doc/library/ |
D | zipfile.rst | 29 .. exception:: BadZipfile
|
/external/python/cpython3/Doc/library/ |
D | zipfile.rst | 35 .. exception:: BadZipfile
|
/external/python/cpython3/Lib/ |
D | zipfile.py | 52 error = BadZipfile = BadZipFile # Pre-3.2 compatibility names
|
/external/python/cpython3/Misc/ |
D | HISTORY | 11699 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/ |
D | HISTORY | 4061 - ZipFile.testzip() now only traps BadZipfile exceptions. Previously,
|