Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
ZipManifests Class Reference
Inheritance diagram for ZipManifests:
Collaboration diagram for ZipManifests:

Public Member Functions

 build (cls, path)
 

Static Public Attributes

 load = build
 

Detailed Description

zip manifest builder

Definition at line 1764 of file __init__.py.

Member Function Documentation

◆ build()

build (   cls,
  path 
)
Build a dictionary similar to the zipimport directory
caches, except instead of tuples, store ZipInfo objects.

Use a platform-specific path separator (os.sep) for the path keys
for compatibility with pypy on Windows.

Definition at line 1770 of file __init__.py.

1770 def build(cls, path):
1771 """
1772 Build a dictionary similar to the zipimport directory
1773 caches, except instead of tuples, store ZipInfo objects.
1774
1775 Use a platform-specific path separator (os.sep) for the path keys
1776 for compatibility with pypy on Windows.
1777 """
1778 with zipfile.ZipFile(path) as zfile:
1779 items = (
1780 (
1781 name.replace('/', os.sep),
1782 zfile.getinfo(name),
1783 )
1784 for name in zfile.namelist()
1785 )
1786 return dict(items)
1787
for i

Field Documentation

◆ load

load = build
static

Reimplemented in MemoizedZipManifests.

Definition at line 1788 of file __init__.py.


The documentation for this class was generated from the following file: