Home
last modified time | relevance | path

Searched refs:zipimporter (Results 1 – 23 of 23) sorted by relevance

/external/python/cpython3/Lib/importlib/
Dresources.py275 def __init__(self, zipimporter, fullname): argument
276 self.zipimporter = zipimporter
283 return BytesIO(self.zipimporter.get_data(path))
299 self.zipimporter.get_data(path)
312 fullname_path = Path(self.zipimporter.get_filename(self.fullname))
313 relative_path = fullname_path.relative_to(self.zipimporter.archive)
319 for filename in self.zipimporter._files:
337 def _zipimport_get_resource_reader(zipimporter, fullname): argument
339 if not zipimporter.is_package(fullname):
343 return _ZipImportResourceReader(zipimporter, fullname)
/external/python/cpython3/Lib/test/
Dtest_zipimport.py431 zi = zipimport.zipimporter(TEMP_ZIP)
437 self.assertIsInstance(find_mod, zipimport.zipimporter)
467 zi2 = zipimport.zipimporter(TEMP_ZIP + os.sep + TESTPACK)
489 zi = zipimport.zipimporter(TEMP_ZIP + os.sep + packdir)
502 zi2 = zipimport.zipimporter(pkg_path)
505 self.assertIsInstance(find_mod_dotted, zipimport.zipimporter)
535 zi = zipimport.zipimporter(TEMP_ZIP)
553 zi = zipimport.zipimporter(TEMP_ZIP)
666 zipimport.zipimporter(filename).load_module(TESTMOD)
678 zipimport.zipimporter(filename)
[all …]
Dtest_cmd_line_script.py260 zipimport.zipimporter)
268 zipimport.zipimporter)
291 script_dir, 'test_pkg', zipimport.zipimporter,
299 zipimport.zipimporter,
/external/python/cpython3/Doc/library/
Dzipimport.rst52 Exception raised by zipimporter objects. It's a subclass of :exc:`ImportError`,
58 zipimporter Objects
61 :class:`zipimporter` is the class for importing ZIP files.
63 .. class:: zipimporter(archivepath)
65 Create a new zipimporter instance. *archivepath* must be a path to a ZIP
76 qualified (dotted) module name. It returns the zipimporter instance itself
136 empty string for zipimporter objects which point to the root of the ZIP
141 :class:`zipimporter` constructor.
Dpkgutil.rst159 :class:`zipimport.zipimporter`.
198 :class:`zipimport.zipimporter`.
/external/python/cpython2/Doc/library/
Dzipimport.rst57 Exception raised by zipimporter objects. It's a subclass of :exc:`ImportError`,
63 zipimporter Objects
66 :class:`zipimporter` is the class for importing ZIP files.
68 .. class:: zipimporter(archivepath)
70 Create a new zipimporter instance. *archivepath* must be a path to a ZIP
81 qualified (dotted) module name. It returns the zipimporter instance itself
138 empty string for zipimporter objects which point to the root of the ZIP
143 :class:`zipimporter` constructor.
/external/python/cpython2/Lib/test/
Dtest_zipimport.py216 zi = zipimport.zipimporter(TEMP_ZIP)
239 zi2 = zipimport.zipimporter(TEMP_ZIP + os.sep + TESTPACK)
260 zi = zipimport.zipimporter(TEMP_ZIP + os.sep + packdir)
293 zi = zipimport.zipimporter(TEMP_ZIP)
393 zipimport.zipimporter, filename)
402 self.assertRaises(TypeError, zipimport.zipimporter, None)
403 self.assertRaises(TypeError, zipimport.zipimporter, TESTMOD, kwd=None)
439 z = zipimport.zipimporter(TESTMOD)
/external/python/cpython2/Lib/
Dpkgutil.py327 from zipimport import zipimporter
358 iter_importer_modules.register(zipimporter, iter_zipimport_modules)
/external/python/cpython3/Lib/
Dpkgutil.py369 from zipimport import zipimporter
399 iter_importer_modules.register(zipimporter, iter_zipimport_modules)
/external/python/cpython3/Python/
Dimport.c114 _Py_IDENTIFIER(zipimporter); in _PyImportZip_Init()
115 PyObject *zipimporter = _PyObject_GetAttrId(zimpimport, in _PyImportZip_Init() local
118 if (zipimporter == NULL) { in _PyImportZip_Init()
126 err = PyList_Insert(path_hooks, 0, zipimporter); in _PyImportZip_Init()
127 Py_DECREF(zipimporter); in _PyImportZip_Init()
/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest_path.py102 new_path_hooks = [zipimport.zipimporter,
/external/python/setuptools/pkg_resources/
D__init__.py1769 register_loader_type(zipimport.zipimporter, ZipProvider)
1888 dists = find_eggs_in_zip(zipimport.zipimporter(subpath), subpath)
1893 submeta = EggMetadata(zipimport.zipimporter(subpath))
1898 register_finder(zipimport.zipimporter, find_eggs_in_zip)
2206 register_namespace_handler(zipimport.zipimporter, file_ns_handler)
/external/python/cpython2/Python/
Dimport.c246 PyObject *zipimporter = PyObject_GetAttrString(zimpimport, in _PyImportHooks_Init() local
249 if (zipimporter == NULL) { in _PyImportHooks_Init()
257 err = PyList_Append(path_hooks, zipimporter); in _PyImportHooks_Init()
258 Py_DECREF(zipimporter); in _PyImportHooks_Init()
/external/python/cpython3/Misc/NEWS.d/
D3.7.0a2.rst68 Fix an assertion failure in `zipimporter.get_source()` in case of a bad
D3.6.3rc1.rst98 Fix an assertion failure in `zipimport.zipimporter.get_data` on Windows,
D3.7.0a3.rst215 ``zipimport.zipimporter`` object. Patch by Oren Milman.
D3.5.2rc1.rst342 Fix possible integer overflow and heap corruption in zipimporter.get_data().
D3.6.0a1.rst806 Fix possible integer overflow and heap corruption in zipimporter.get_data().
D3.7.0a1.rst227 Fix an assertion failure in `zipimport.zipimporter.get_data` on Windows,
/external/python/setuptools/setuptools/command/
Deasy_install.py891 metadata = EggMetadata(zipimport.zipimporter(egg_path))
1897 zipimport.zipimporter(path)
/external/python/cpython2/Misc/NEWS.d/
D2.7.12rc1.rst233 Fix possible integer overflow and heap corruption in zipimporter.get_data().
/external/python/setuptools/docs/
Dpkg_resources.txt1509 ``EggMetadata(zipimporter)``
1511 `zipimporter` should be a ``zipimport.zipimporter`` instance, and may
/external/python/cpython3/Misc/
DHISTORY93 zipimporter.get_data().
6913 zipimport.zipimporter).