/usr/lib/python3/dist-packages/twisted/python/__pycache__
Edit: /usr/lib/python3/dist-packages/twisted/python/__pycache__/zipstream.cpython-310.pyc (8826B)
o
b% @ s d Z ddlZddlZddlZddlZG dd dejZG dd dZG dd deZ G d d
d
eZ
dZdd
Zdd Z
dddZdS )z
An incremental approach to unzipping files. This allows you to unzip a little
bit of a file at a time, which means you can report progress as a file unzips.
Nc @ s e Zd ZdZdd ZdS )ChunkingZipFilez~
A L{zipfile.ZipFile} object which, with L{readfile}, also gives you access
to a file-like object for each entry.
c C s" | j dvr td| jstd| |}| j|jd | jtj}|dd tj kr2t
dttj
|}| j|tj }|tj rP| j|tj |jd@ r[|d}n|d }||jkrot
d
|j|f |jtjkr{t| |jS |jtjkrt| |jS t
d|j|f )z3
Return file-like object for name.
)razread() requires mode "r" or "a"z3Attempt to read ZIP archive that was already closedr z Bad magic number for file headeri zutf-8cp437z3File name in directory "%s" and header "%s" differ.z-Unsupported compression method %d for file %s)modeRuntimeErrorfpgetinfoseek
header_offsetreadzipfilesizeFileHeaderstringFileHeader
BadZipfilestructunpackstructFileHeader_FH_FILENAME_LENGTH_FH_EXTRA_FIELD_LENGTH flag_bitsdecode
orig_filename
compress_type
ZIP_STOREDZipFileEntry
compress_sizeZIP_DEFLATEDDeflatedZipFileEntry)selfnamezinfofheaderfname fname_str r&