/usr/lib/python3/dist-packages/httplib2/__pycache__
Edit: /usr/lib/python3/dist-packages/httplib2/__pycache__/decode.cpython-310.pyc (5620B)
o
0PjX @ sv d dl mZ d dlZG dd deZG dd deZG dd deZG d d
d
eZdefdd
ZG dd deZ dS ) )ProtocolNc @ e Zd ZdZdS )DecodeRatioErrorzBOutput-to-input amplification ratio exceeded the configured limit.N__name__
__module____qualname____doc__ r
r
1/usr/lib/python3/dist-packages/httplib2/decode.pyr r c @ r )DecodeLimitErrorz,Total output length exceeded the hard limit.Nr r
r
r
r r
r r
c @ sV e Zd ZedefddZdedefddZdefddZdd
ede defdd
Z
dS )DecoderProtocolreturnc C d S Nr
selfr
r
r needs_input s zDecoderProtocol.needs_inputbc C r r r
r r r
r
r decode zDecoderProtocol.decodec C r r r
r r
r
r flush r zDecoderProtocol.flush data
chunk_sizec C sb t }|dkrt|}tdt||D ]}|||| }|| | q|| t|S )Nr ) bytearraylenrangeextendr r bytes)r r r outichunkr
r
r
consume_bytes s zDecoderProtocol.consume_bytesN)r )r r r propertyboolr r! r r intr% r
r
r
r r
s r c @ sh e Zd ZdZdZdZdZdZdZefde fdd Z
ed
efddZ
d
ed
efddZd
efddZdS )ZlibDecodera#
Thin wrapper around zlib.Decompressor conforming to the Decoder interface.
Note: zlib pushes all available decompressed data immediately upon receiving
input. It never holds back output requiring `decode(b"")` to extract it.
Thus, `needs_input` naturally remains True.
)_decoderi / wbitsc C s t || _d S r )zlib
decompressobjr* )r r. r
r
r __init__3 s zZlibDecoder.__init__r c C s | j d u r td| j j S Nzused after flush())r* RuntimeErroreofr r
r
r r 6 s
zZlibDecoder.needs_inputr c C s | j d u r td| j |S r2 )r* r3
decompressr r
r
r r <