Home
last modified time | relevance | path

Searched refs:ZipImportError (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython3/Lib/
Dzipimport.py33 class ZipImportError(ImportError): class
68 raise ZipImportError('archive path is empty', path=path)
81 raise ZipImportError('not a Zip file', path=path)
88 raise ZipImportError('not a Zip file', path=path)
204 raise ZipImportError(f"can't find module {fullname!r}", name=fullname)
229 raise ZipImportError(f"can't find module {fullname!r}", name=fullname)
281 except ZipImportError:
356 raise ZipImportError(f"can't open Zip file: {archive!r}", path=archive)
364 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
366 raise ZipImportError(f"can't read Zip file: {archive!r}", path=archive)
[all …]
/external/python/cpython2/Modules/
Dzipimport.c43 static PyObject *ZipImportError; variable
75 PyErr_SetString(ZipImportError, "archive path is empty"); in zipimporter_init()
79 PyErr_SetString(ZipImportError, in zipimporter_init()
141 PyErr_SetString(ZipImportError, "not a Zip file"); in zipimporter_init()
234 PyErr_SetString(ZipImportError, "path too long"); in make_filename()
411 PyErr_Format(ZipImportError, "can't find module '%.200s'", in zipimporter_is_package()
434 PyErr_SetString(ZipImportError, "path too long"); in zipimporter_get_data()
487 PyErr_Format(ZipImportError, "can't find module '%.200s'", in zipimporter_get_source()
730 PyErr_Format(ZipImportError, "can't open Zip file: " in read_directory()
867 PyErr_Format(ZipImportError, "can't read Zip file: %.200s", archive); in read_directory()
[all …]
/external/python/cpython2/Doc/library/
Dzipimport.rst55 .. exception:: ZipImportError
75 :exc:`ZipImportError` is raised if *archivepath* doesn't point to a valid ZIP
90 :exc:`ZipImportError` if the module couldn't be found.
102 was imported. Raise :exc:`ZipImportError` if the module couldn't be
111 :exc:`ZipImportError` if the module couldn't be found, return
119 :exc:`ZipImportError` if the module couldn't be found.
126 :exc:`ZipImportError` if it wasn't found.
/external/python/cpython3/Doc/library/
Dzipimport.rst53 .. exception:: ZipImportError
73 :exc:`ZipImportError` is raised if *archivepath* doesn't point to a valid ZIP
88 :exc:`ZipImportError` if the module couldn't be found.
103 was imported. Raise :exc:`ZipImportError` if the module couldn't be
112 :exc:`ZipImportError` if the module couldn't be found, return
120 :exc:`ZipImportError` if the module couldn't be found.
127 :exc:`ZipImportError` if it wasn't found.
/external/python/cpython2/Lib/test/
Dtest_zipimport.py392 self.assertRaises(zipimport.ZipImportError,
449 error = zipimport.ZipImportError
/external/python/cpython3/Lib/test/
Dtest_zipimport.py693 self.assertRaises(zipimport.ZipImportError,
722 with self.assertRaises(zipimport.ZipImportError) as cm:
754 error = zipimport.ZipImportError
/external/python/cpython3/Tools/c-analyzer/
Dignored-globals.txt93 ZipImportError
/external/python/setuptools/
DCHANGES.rst2104 Fixes ZipImportError complaining about a 'bad local header'.