%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib64/python2.7/site-packages/zmq/utils/
Upload File :
Create Path :
Current File : //lib64/python2.7/site-packages/zmq/utils/z85.pyo

�
+�{Wc@s�dZddlZddlZejddkZdZegee�D]\ZZ	e	ef^qG�Z
ged�D]Zde^quddd�Z
d�Zd	�ZdS(
s�Python implementation of Z85 85-bit encoding

Z85 encoding is a plaintext encoding for a bytestring interpreted as 32bit integers.
Since the chunks are 32bit, a bytestring must be a multiple of 4 bytes.
See ZMQ RFC 32 for details.


i����NiisU0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#iiUcCs�t|�dr)tdt|���nt|�d}tjd||�}g}x8|D]0}x'tD]}|jt||d�qiWq\Wtr�t|�Sdj	|�SdS(sencode raw bytes into Z85is$length must be multiple of 4, not %is>%dIiUtN(
tlent
ValueErrortstructtunpackt_85stappendtZ85CHARStPY3tbytestjoin(trawbytestnvaluestvaluestencodedtvtoffset((s3/usr/lib64/python2.7/site-packages/zmq/utils/z85.pytencodes

!
cCstrKt|t�rKy|jd�}WqKtk
rGtd��qKXnt|�drttdt|���nt|�d}g}xjtdt|�d�D]P}d}x4tt	�D]&\}}|t
||||7}q�W|j|�q�Wtj
d||�S(s3decode Z85 bytes to raw bytes, accepts ASCII stringtasciis4string argument should contain only ASCII charactersis(Z85 length must be multiple of 5, not %iis>%dI(Rt
isinstancetstrRtUnicodeEncodeErrorRRtranget	enumerateRtZ85MAPRRtpack(tz85bytesRR
titvaluetjR((s3/usr/lib64/python2.7/site-packages/zmq/utils/z85.pytdecode,s
(t__doc__tsysRtversion_infoRRtdictRtidxtcRRRRRR(((s3/usr/lib64/python2.7/site-packages/zmq/utils/z85.pyt<module>s10	

Zerion Mini Shell 1.0