IP : 18.116.90.13 Hostname : host45.registrar-servers.com Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 Disable Function : None :) OS : Linux PATH: / home/ ../ lib64/ python3.6/ __pycache__/ pickletools.cpython-36.opt-2.pyc/ /

3


\f�I@s�
ddlZddlZddlZddlZddlZdddgZejZ�d�Z�d�Z�d�Z �d�Z
�d�Z Gd
d �d e �Z
dd lmZd
d�Ze
ddedd�Zdd�Ze
ddedd�Zdd�Ze
ddedd�Zdd�Ze
ddedd�Zdd�Ze
d d!ed"d�Z�d�d$d%�Ze
d&eed'd�Zd(d)�Ze
d*eed+d�Zd,d-�Ze
d.eed/d�Z d0d1�Z!e
d2ee!d3d�Z"d4d5�Z#e
d6e e#d7d�Z$d8d9�Z%e
d:ee%d;d�Z&d<d9�Z%e
d:ee%d=d�Z&d>d?�Z'e
d@e
e'dAd�Z(dBdC�Z)e
dDe e)dEd�Z*dFdG�Z+e
dHee+dId�Z,dJdK�Z-e
dLee-dMd�Z.dNdO�Z/e
dPe
e/dQd�Z0dRdS�Z1e
dTe e1dUd�Z2dVdW�Z3dXdY�Z4e
dZee3d[d�Z5e
d\ee4d]d�Z6d^d_�Z7e
d`ee7dad�Z8dbdc�Z9e
ddd!e9ded�Z:ddflm;Z;dgdh�Z<e
diee<djd�Z=dkdl�Z>e
dme e>dnd�Z?Gdodp�dpe �Z@e@dqeAdrds�ZBZCe@dteAeDfduds�ZEe@dveDdwds�ZFe@dxeGdyds�ZHe@dzeIeJfd{ds�ZKZLe@d|eId}ds�ZMe@d~eJdds�ZNe@d�eOd�d�ds�ZPe@d�eQd�ds�ZRe@d�eSd�ds�ZTe@d�eUd�ds�ZVe@d�eWd�ds�ZXe@d�eWd�ds�ZYe@d�e d�ds�ZZe@d�e@d�ds�Z[e@d�e@d�ds�Z\Gd�d��d�e �Z]e]Z^e^d�d�e5geEgdd�d��e^d�d�egeBgdd�d��e^d�d�egeBgdd�d��e^d�d�egeBgdd�d��e^d�d�e6geBgdd�d��e^d�d�e=geBgdd�d��e^d�d�e?geBgdd�d��e^d�d�egeKgdd�d��e^d�d�e$geKgdd�d��e^d�d�e"geKgdd�d��e^d�d�e(geMgdd�d��e^d�d�e&geMgdd�d��e^d�d�e*geMgdd�d��e^d�d�dgePgdd�d��e^d�d�dgeFgdd�d��e^d�d�dgeFgdd�d��e^d�d�e,geNgdd�d��e^d�d�e.geNgdd�d��e^d�d�e0geNgdd�d��e^d�d�e2geNgdd�d��e^d�d�e8geHgdd�d��e^d�d�e:geHgdd�d��e^d�d�dgeTgdd�d��e^d�d�deTeZgeTgdd�d��e^d�d�deTe[e\geTgdd�d��e^d�d�de[e\geTgdd�d��e^d�d�dgeRgdd�d��e^d�d�de[e\geRgdd�d��e^d�d�deZgeRgdd�d��e^d�d�deZeZgeRgdd�d��e^d�d�deZeZeZgeRgdd�d��e^d�d�dgeVgdd�d��e^d�d�de[e\geVgdd�d��e^d�d�deVeZeZgeVgdd�d��e^d�d�deVe[e\geVgdd�d��e^d�d�dgeXgd�dd��e^�d�ddeXe[e\geXgd�dd��e^�d�dde[e\geYgd�dd��e^�d�ddeZggd�d d��e^�d
�d deZgeZeZgd�d d��e^�d
�ddge[gd�dd��e^�d�dde[e\ggd�dd��e^�d�de5geZgd�dd��e^�d�degeZgd�dd��e^�d�degeZgd�dd��e^�d�de5ggd�dd��e^�d�d eggd�d!d��e^�d"�d#eggd�d$d��e^�d%�d&deZgeZgd�d'd��e^�d(�d)egeZgd�d*d��e^�d+�d,egeZgd�d-d��e^�d.�d/egeZgd�d0d��e^�d1�d2e geZgd�d3d��e^�d4�d5deNeNgeZgd�d6d��e^�d7�d8deZeZgeZgd�d9d��e^�d:�d;deZeZgeZgd�d<d��e^�d=�d>e e[e\geZgd�d?d��e^�d@�dAde[eZe\geZgd�dBd��e^�dC�dDdeZeZgeZgd�dEd��e^�dF�dGdeZeZeZgeZgd�dHd��e^�dI�dJeggd�dKd��e^�dL�dMdeZggd�dNd��e^�dO�dPeggd�dQd��e^�dR�dSegeZgd�dTd��e^�dU�dVdeZgeZgd�dWd��gAZ_[^iZ`iZaxzebe_�D]n\ZcZdedjee`k�
r�ef�dXedjee`edjeecf��edjgeak�
r�ef�dYedjgeaedjgecf��ece`edje<eceaedjg<�
q�W[`[a[c[diZhxe_D]Zdedehedjg<� qW[d�d��d[�d\�Ziei�[i�d��d]�d^�Zj�d_d�Zk�d`d�Zl�d��dad�ZmG�db�dc��dc�Zn�ddZo�deZpeoep�df�Zq�dg�dh�Zres�dik�
r~ddltZtetju�dj�dk�Zvevjw�dletjx�dm��dn�do�dp�evjw�dq�drejyetjx�ds��dt�du�evjw�dv�dw�dx�dy�dz�evjw�d{�d|deA�d}�du�evjw�d~�d�dx�d��dz�evjw�d��d��d��d��d��evjw�d��d��dx�d��dz�evjw�d��dx�d��dz�evjz�Z{e{j|� r�er�n�e{j}� r�d�ndZ}e{j~� s�evj�n�e�e{j~�dk�
r$eme{j~de{j�de{j�e}�nZe{j��
r0indZ�xHe{j~D]>Z�e{j�j�e�je�d��Z�e{j�j�e��d��eme�e{j�e�e{j�e}��
q<WdS(��N�dis�genops�optimize�����c@seZdZdZdd�ZdS) �ArgumentDescriptor�name�n�reader�doccCs||_||_||_||_dS)N)r r r
r)�selfr r r
r�r�#/usr/lib64/python3.6/pickletools.py�__init__�szArgumentDescriptor.__init__N)r r r
r)�__name__�
__module__� __qualname__� __slots__rrrrrr
�s
r
)�unpackcCs"|jd�}|r|dStd��dS)Nrrz'not enough data in stream to read uint1)�read�
ValueError)�f�datarrr�
read_uint1�s
r�uint1zOne-byte unsigned integer.)r r r
rcCs0|jd�}t|�dkr$td|�dStd��dS)Nrz<Hrz'not enough data in stream to read uint2)r�len�_unpackr)rrrrr�
read_uint2�s
 r �uint2z)Two-byte unsigned integer, little-endian.cCs0|jd�}t|�dkr$td|�dStd��dS)Nrz<irz&not enough data in stream to read int4)rrrr)rrrrr� read_int4�s
 r"�int4z8Four-byte signed integer, little-endian, 2's complement.cCs0|jd�}t|�dkr$td|�dStd��dS)Nrz<Irz'not enough data in stream to read uint4)rrrr)rrrrr�
read_uint4s
 r$�uint4z*Four-byte unsigned integer, little-endian.cCs0|jd�}t|�dkr$td|�dStd��dS)N�z<Qrz'not enough data in stream to read uint8)rrrr)rrrrr�
read_uint8&s
 r'�uint8r&z+Eight-byte unsigned integer, little-endian.TcCs�|j�}|jd�std��|dd
�}|rvxJd D]6}|j|�r0|j|�sXtd||f��|dd �}Pq0Wtd|��|r�tj|�djd �}|S)
N�
z-no newline found when trying to read stringnlr�"�'z,strinq quote %r not found at both ends of %rzno string quotes around %rr�ascii���)r*r+r-)�readline�endswithr�
startswith�codecs�
escape_decode�decode)rr3� stripquotesr�qrrr�
read_stringnl;s 
 


   r6�stringnlz�A newline-terminated string.

This is a repr-style string, with embedded escapes, and
bracketing quotes.
cCs t|dd�S)NF)r4)r6)rrrr�read_stringnl_noescapetsr8�stringnl_noescapeaA newline-terminated string.

This is a str-style string, without embedded escapes,
or bracketing quotes. It should consist solely of
printable ASCII characters.
cCsdt|�t|�fS)Nz%s %s)r8)rrrr�read_stringnl_noescape_pair�sr:�stringnl_noescape_paira�A pair of newline-terminated strings.

These are str-style strings, without embedded
escapes, or bracketing quotes. They should
consist solely of printable ASCII characters.
The pair is returned as a single string, with
a single blank separating the two strings.
cCs@t|�}|j|�}t|�|kr(|jd�Std|t|�f��dS)Nzlatin-1z2expected %d bytes in a string1, but only %d remain)rrrr3r)rr rrrr� read_string1�s 
 
r<�string1z�A counted string.

The first argument is a 1-byte unsigned int giving the number
of bytes in the string, and the second argument is that many
bytes.
cCsTt|�}|dkrtd|��|j|�}t|�|kr<|jd�Std|t|�f��dS)Nrzstring4 byte count < 0: %dzlatin-1z2expected %d bytes in a string4, but only %d remain)r"rrrr3)rr rrrr� read_string4�s
 
 
r>�string4z�A counted string.

The first argument is a 4-byte little-endian signed int giving
the number of bytes in the string, and the second argument is
that many bytes.
cCs:t|�}|j|�}t|�|kr"|Std|t|�f��dS)Nz1expected %d bytes in a bytes1, but only %d remain)rrrr)rr rrrr� read_bytes1�s 
 r@�bytes1z�A counted bytes string.

The first argument is a 1-byte unsigned int giving the number
of bytes in the string, and the second argument is that many
bytes.
cCs:t|�}|j|�}t|�|kr"|Std|t|�f��dS)Nz1expected %d bytes in a bytes1, but only %d remain)rrrr)rr rrrrr@�s 
 z�A counted bytes string.

The first argument is a 1-byte unsigned int giving the number
of bytes, and the second argument is that many bytes.
cCsPt|�}|tjkrtd|��|j|�}t|�|kr8|Std|t|�f��dS)Nz#bytes4 byte count > sys.maxsize: %dz1expected %d bytes in a bytes4, but only %d remain)r$�sys�maxsizerrr)rr rrrr� read_bytes4s

 
 rD�bytes4z�A counted bytes string.

The first argument is a 4-byte little-endian unsigned int giving
the number of bytes, and the second argument is that many bytes.
cCsPt|�}|tjkrtd|��|j|�}t|�|kr8|Std|t|�f��dS)Nz#bytes8 byte count > sys.maxsize: %dz1expected %d bytes in a bytes8, but only %d remain)r'rBrCrrr)rr rrrr� read_bytes83s
 
 rF�bytes8z�A counted bytes string.

The first argument is an 8-byte little-endian unsigned int giving
the number of bytes, and the second argument is that many bytes.
cCs0|j�}|jd�std��|dd�}t|d�S)Nr)z4no newline found when trying to read unicodestringnlrzraw-unicode-escaper-)r.r/r�str)rrrrr�read_unicodestringnlUs

 rI�unicodestringnlz�A newline-terminated Unicode string.

This is raw-unicode-escape encoded, so consists of
printable ASCII characters, and may contain embedded
escape sequences.
cCsBt|�}|j|�}t|�|kr*t|dd�Std|t|�f��dS)Nzutf-8�
surrogatepassz9expected %d bytes in a unicodestring1, but only %d remain)rrrrHr)rr rrrr�read_unicodestring1os 
  rL�unicodestring1aAA counted Unicode string.

The first argument is a 1-byte little-endian signed int
giving the number of bytes in the string, and the second
argument-- the UTF-8 encoding of the Unicode string --
contains that many bytes.
cCsXt|�}|tjkrtd|��|j|�}t|�|kr@t|dd�Std|t|�f��dS)Nz+unicodestring4 byte count > sys.maxsize: %dzutf-8rKz9expected %d bytes in a unicodestring4, but only %d remain)r$rBrCrrrrH)rr rrrr�read_unicodestring4�s
 
  rN�unicodestring4aAA counted Unicode string.

The first argument is a 4-byte little-endian signed int
giving the number of bytes in the string, and the second
argument-- the UTF-8 encoding of the Unicode string --
contains that many bytes.
cCsXt|�}|tjkrtd|��|j|�}t|�|kr@t|dd�Std|t|�f��dS)Nz+unicodestring8 byte count > sys.maxsize: %dzutf-8rKz9expected %d bytes in a unicodestring8, but only %d remain)r'rBrCrrrrH)rr rrrr�read_unicodestring8�s
 
  rP�unicodestring8aBA counted Unicode string.

The first argument is an 8-byte little-endian signed int
giving the number of bytes in the string, and the second
argument-- the UTF-8 encoding of the Unicode string --
contains that many bytes.
cCs.t|ddd�}|dkrdS|dkr&dSt|�S)NF)r3r4s00s01T)r6�int)r�srrr�read_decimalnl_short�s rTcCs2t|ddd�}|dd�dkr*|dd�}t|�S)NF)r3r4r�Lr-r-)r6rR)rrSrrr�read_decimalnl_long�s  rV�decimalnl_shorta�A newline-terminated decimal integer literal.

This never has a trailing 'L', and the integer fit
in a short Python int on the box where the pickle
was written -- but there's no guarantee it will fit
in a short Python int on the box where the pickle
is read.
�decimalnl_longz�A newline-terminated decimal integer literal.

This has a trailing 'L', and can represent integers
of any size.
cCst|ddd�}t|�S)NF)r3r4)r6�float)rrSrrr� read_floatnl'srZ�floatnla�A newline-terminated decimal floating literal.

In general this requires 17 significant digits for roundtrip
identity, and pickling then unpickling infinities, NaNs, and
minus zero doesn't work across boxes, or on some boxes even
on itself (e.g., Windows can't read the strings it produces
for infinities or NaNs).
cCs0|jd�}t|�dkr$td|�dStd��dS)Nr&z>drz(not enough data in stream to read float8)rrrr)rrrrr� read_float8=s

 r\�float8aAn 8-byte binary representation of a float, big-endian.

The format is unique to Python, and shared with the struct
module (format string '>d') "in theory" (the struct and pickle
implementations don't share the code -- they should). It's
strongly related to the IEEE-754 double format, and, in normal
cases, is in fact identical to the big-endian 754 double format.
On other boxes the dynamic range is limited to that of a 754
double, and "add a half and chop" rounding is used to reduce
the precision to 53 bits. However, even on a 754 box,
infinities, NaNs, and minus zero may not be handled correctly
(may not survive roundtrip pickling intact).
)� decode_longcCs.t|�}|j|�}t|�|kr&td��t|�S)Nz'not enough data in stream to read long1)rrrrr^)rr rrrr�
read_long1cs

 r_�long1aA binary long, little-endian, using 1-byte size.

This first reads one byte as an unsigned size, then reads that
many bytes and interprets them as a little-endian 2's-complement long.
If the size is 0, that's taken as a shortcut for the long 0L.
cCsBt|�}|dkrtd|��|j|�}t|�|kr:td��t|�S)Nrzlong4 byte count < 0: %dz'not enough data in stream to read long4)r"rrrr^)rr rrrr�
read_long4�s 
 ra�long4a�A binary representation of a long, little-endian.

This first reads four bytes as a signed size (but requires the
size to be >= 0), then reads that many bytes and interprets them
as a little-endian 2's-complement long. If the size is 0, that's taken
as a shortcut for the int 0, although LONG1 should really be used
then instead (and in any case where # of bytes < 256).
c@s eZdZd Zdd�Zdd�ZdS)
� StackObjectr �obtypercCs.||_t|t�rx |D]}qW||_||_dS)N)r �
isinstance�tuplerdr)rr rdrZ containedrrrr�s 

zStackObject.__init__cCs|jS)N)r )rrrr�__repr__�szStackObject.__repr__N)r rdr)rrrrrrgrrrrrc�s

rcrRzA Python integer object.)r rdrZ int_or_boolz#A Python integer or boolean object.�boolzA Python boolean object.rYzA Python float object.Z bytes_or_strz*A Python bytes or (Unicode) string object.�byteszA Python bytes object.rHz!A Python (Unicode) string object.�NonezThe Python None object.rfzA Python tuple object.�listzA Python list object.�dictzA Python dict object.�setzA Python set object.� frozensetzA Python frozenset object.�anyzAny kind of object whatsoever.Zmarkaz'The mark' is a unique object.

Opcodes that operate on a variable number of objects
generally don't embed the count of objects in the opcode,
or pull it off the stack. Instead the MARK opcode is used
to push a special marker object on the stack, and then
some other opcodes grab all the objects from the top of
the stack down to (but not including) the topmost marker
object.

stackslicea�An object representing a contiguous slice of the stack.

This is used in conjunction with markobject, to represent all
of the stack following the topmost markobject. For example,
the POP_MARK opcode changes the stack from

[..., markobject, stackslice]
to
[...]

No matter how many object are on the stack after the topmost
markobject, POP_MARK gets rid of all of them (including the
topmost markobject too).
c@seZdZd Zdd �Zd
S) �
OpcodeInfor �code�arg� stack_before� stack_after�protorc CsJ||_||_||_x |D]}qW||_x |D]}q,W||_||_||_dS)N)r rrrsrtrurvr) rr rrrsrtrurvr�xrrrrTs

zOpcodeInfo.__init__N)r rrrsrtrurvr)rrrrrrrrrrq5srqZINT�Ia�Push an integer or bool.

The argument is a newline-terminated decimal literal string.

The intent may have been that this always fit in a short Python int,
but INT can be generated in pickles written on a 64-bit box that
require a Python long on a 32-bit box. The difference between this
and LONG then is that INT skips a trailing 'L', and produces a short
int whenever possible.

Another difference is due to that, when bool was introduced as a
distinct type in 2.3, builtin names True and False were also added to
2.2.2, mapping to ints 1 and 0. For compatibility in both directions,
True gets pickled as INT + "I01\n", and False as INT + "I00\n".
Leading zeroes are never produced for a genuine integer. The 2.3
(and later) unpicklers special-case these and return bool instead;
earlier unpicklers ignore the leading "0" and return the int.
)r rrrsrtrurvrZBININT�Ja1Push a four-byte signed integer.

This handles the full range of Python (short) integers on a 32-bit
box, directly as binary bytes (1 for the opcode and 4 for the integer).
If the integer is non-negative and fits in 1 or 2 bytes, pickling via
BININT1 or BININT2 saves space.
ZBININT1�Kz�Push a one-byte unsigned integer.

This is a space optimization for pickling very small non-negative ints,
in range(256).
ZBININT2�Mz�Push a two-byte unsigned integer.

This is a space optimization for pickling small positive ints, in
range(256, 2**16). Integers in range(256) can also be pickled via
BININT2, but BININT1 instead saves a byte.
ZLONG�La�Push a long integer.

The same as INT, except that the literal ends with 'L', and always
unpickles to a Python long. There doesn't seem a real purpose to the
trailing 'L'.

Note that LONG takes time quadratic in the number of digits when
unpickling (this is simply due to the nature of decimal->binary
conversion). Proto 2 added linear-time (in C; still quadratic-time
in Python) LONG1 and LONG4 opcodes.
ZLONG1�Šz|Long integer using one-byte length.

A more efficient encoding of a Python long; the long1 encoding
says it all.ZLONG4�‹z~Long integer using found-byte length.

A more efficient encoding of a Python long; the long4 encoding
says it all.�STRING�Sa�Push a Python string object.

The argument is a repr-style string, with bracketing quote characters,
and perhaps embedded escapes. The argument extends until the next
newline character. These are usually decoded into a str instance
using the encoding given to the Unpickler constructor. or the default,
'ASCII'. If the encoding given was 'bytes' however, they will be
decoded as bytes object instead.
Z BINSTRING�Ta�Push a Python string object.

There are two arguments: the first is a 4-byte little-endian
signed int giving the number of bytes in the string, and the
second is that many bytes, which are taken literally as the string
content. These are usually decoded into a str instance using the
encoding given to the Unpickler constructor. or the default,
'ASCII'. If the encoding given was 'bytes' however, they will be
decoded as bytes object instead.
ZSHORT_BINSTRING�Ua�Push a Python string object.

There are two arguments: the first is a 1-byte unsigned int giving
the number of bytes in the string, and the second is that many
bytes, which are taken literally as the string content. These are
usually decoded into a str instance using the encoding given to
the Unpickler constructor. or the default, 'ASCII'. If the
encoding given was 'bytes' however, they will be decoded as bytes
object instead.
ZBINBYTES�Bz�Push a Python bytes object.

There are two arguments: the first is a 4-byte little-endian unsigned int
giving the number of bytes, and the second is that many bytes, which are
taken literally as the bytes content.
ZSHORT_BINBYTES�Cz�Push a Python bytes object.

There are two arguments: the first is a 1-byte unsigned int giving
the number of bytes, and the second is that many bytes, which are taken
literally as the string content.
Z BINBYTES8�Žz�Push a Python bytes object.

There are two arguments: the first is an 8-byte unsigned int giving
the number of bytes in the string, and the second is that many bytes,
which are taken literally as the string content.
ZNONE�NzPush None on the stack.ZNEWTRUE�ˆzPush True onto the stack.ZNEWFALSE�‰zPush False onto the stack.�UNICODE�Vz�Push a Python Unicode string object.

The argument is a raw-unicode-escape encoding of a Unicode string,
and so may contain embedded escape sequences. The argument extends
until the next newline character.
ZSHORT_BINUNICODE�ŒaPush a Python Unicode string object.

There are two arguments: the first is a 1-byte little-endian signed int
giving the number of bytes in the string. The second is that many
bytes, and is the UTF-8 encoding of the Unicode string.
Z
BINUNICODE�XaPush a Python Unicode string object.

There are two arguments: the first is a 4-byte little-endian unsigned int
giving the number of bytes in the string. The second is that many
bytes, and is the UTF-8 encoding of the Unicode string.
Z BINUNICODE8�aPush a Python Unicode string object.

There are two arguments: the first is an 8-byte little-endian signed int
giving the number of bytes in the string. The second is that many
bytes, and is the UTF-8 encoding of the Unicode string.
ZFLOAT�Fa�Newline-terminated decimal float literal.

The argument is repr(a_float), and in general requires 17 significant
digits for roundtrip conversion to be an identity (this is so for
IEEE-754 double precision values, which is what Python float maps to
on most boxes).

In general, FLOAT cannot be used to transport infinities, NaNs, or
minus zero across boxes (or even on a single box, if the platform C
library can't read the strings it produces for such things -- Windows
is like that), but may do less damage than BINFLOAT on boxes with
greater precision or dynamic range than IEEE-754 double.
ZBINFLOAT�Ga�Float stored in binary form, with 8 bytes of data.

This generally requires less than half the space of FLOAT encoding.
In general, BINFLOAT cannot be used to transport infinities, NaNs, or
minus zero, raises an exception if the exponent exceeds the range of
an IEEE-754 double, and retains no more than 53 bits of precision (if
there are more than that, "add a half and chop" rounding is used to
cut it back to 53 significant bits).
Z
EMPTY_LIST�]zPush an empty list.ZAPPEND�az�Append an object to a list.

Stack before: ... pylist anyobject
Stack after: ... pylist+[anyobject]

although pylist is really extended in-place.
ZAPPENDS�ez�Extend a list by a slice of stack objects.

Stack before: ... pylist markobject stackslice
Stack after: ... pylist+stackslice

although pylist is really extended in-place.
ZLIST�lasBuild a list out of the topmost stack slice, after markobject.

All the stack entries following the topmost markobject are placed into
a single Python list, which single list object replaces all of the
stack from the topmost markobject onward. For example,

Stack before: ... markobject 1 2 3 'abc'
Stack after: ... [1, 2, 3, 'abc']
Z EMPTY_TUPLE�)zPush an empty tuple.ZTUPLE�tavBuild a tuple out of the topmost stack slice, after markobject.

All the stack entries following the topmost markobject are placed into
a single Python tuple, which single tuple object replaces all of the
stack from the topmost markobject onward. For example,

Stack before: ... markobject 1 2 3 'abc'
Stack after: ... (1, 2, 3, 'abc')
ZTUPLE1�…z�Build a one-tuple out of the topmost item on the stack.

This code pops one value off the stack and pushes a tuple of
length 1 whose one item is that value back onto it. In other
words:

stack[-1] = tuple(stack[-1:])
ZTUPLE2�†aBuild a two-tuple out of the top two items on the stack.

This code pops two values off the stack and pushes a tuple of
length 2 whose items are those values back onto it. In other
words:

stack[-2:] = [tuple(stack[-2:])]
ZTUPLE3�‡aBuild a three-tuple out of the top three items on the stack.

This code pops three values off the stack and pushes a tuple of
length 3 whose items are those values back onto it. In other
words:

stack[-3:] = [tuple(stack[-3:])]
Z
EMPTY_DICT�}zPush an empty dict.ZDICT�da�Build a dict out of the topmost stack slice, after markobject.

All the stack entries following the topmost markobject are placed into
a single Python dict, which single dict object replaces all of the
stack from the topmost markobject onward. The stack slice alternates
key, value, key, value, .... For example,

Stack before: ... markobject 1 2 3 'abc'
Stack after: ... {1: 2, 3: 'abc'}
ZSETITEMrSz�Add a key+value pair to an existing dict.

Stack before: ... pydict key value
Stack after: ... pydict

where pydict has been modified via pydict[key] = value.
ZSETITEMS�ua\Add an arbitrary number of key+value pairs to an existing dict.

The slice of the stack following the topmost markobject is taken as
an alternating sequence of keys and values, added to the dict
immediately under the topmost markobject. Everything at and after the
topmost markobject is popped, leaving the mutated dict at the top
of the stack.

Stack before: ... pydict markobject key_1 value_1 ... key_n value_n
Stack after: ... pydict

where pydict has been modified via pydict[key_i] = value_i for i in
1, 2, ..., n, and in that order.
Z EMPTY_SET�zPush an empty set.ZADDITEMS�a$Add an arbitrary number of items to an existing set.

The slice of the stack following the topmost markobject is taken as
a sequence of items, added to the set immediately under the topmost
markobject. Everything at and after the topmost markobject is popped,
leaving the mutated set at the top of the stack.

Stack before: ... pyset markobject item_1 ... item_n
Stack after: ... pyset

where pyset has been modified via pyset.add(item_i) = item_i for i in
1, 2, ..., n, and in that order.
Z FROZENSET�‘azBuild a frozenset out of the topmost slice, after markobject.

All the stack entries following the topmost markobject are placed into
a single Python frozenset, which single frozenset object replaces all
of the stack from the topmost markobject onward. For example,

Stack before: ... markobject 1 2 3
Stack after: ... frozenset({1, 2, 3})
�POP�0z<Discard the top stack item, shrinking the stack by one item.ZDUP�2z=Push the top stack item onto the stack again, duplicating it.�MARK�(z�Push markobject onto the stack.

markobject is a unique object, used by other opcodes to identify a
region of the stack containing a variable number of objects for them
to work on. See markobject.doc for more detail.
ZPOP_MARK�1aPop all the stack objects at and above the topmost markobject.

When an opcode using a variable number of stack objects is done,
POP_MARK is used to remove those objects, and to remove the markobject
that delimited their starting position on the stack.
�GET�gz�Read an object from the memo and push it on the stack.

The index of the memo object to push is given by the newline-terminated
decimal string following. BINGET and LONG_BINGET are space-optimized
versions.
�BINGET�hz�Read an object from the memo and push it on the stack.

The index of the memo object to push is given by the 1-byte unsigned
integer following.
� LONG_BINGET�jz�Read an object from the memo and push it on the stack.

The index of the memo object to push is given by the 4-byte unsigned
little-endian integer following.
�PUT�pz�Store the stack top into the memo. The stack is not popped.

The index of the memo location to write into is given by the newline-
terminated decimal string following. BINPUT and LONG_BINPUT are
space-optimized versions.
�BINPUTr5z�Store the stack top into the memo. The stack is not popped.

The index of the memo location to write into is given by the 1-byte
unsigned integer following.
� LONG_BINPUT�rz�Store the stack top into the memo. The stack is not popped.

The index of the memo location to write into is given by the 4-byte
unsigned little-endian integer following.
�MEMOIZE�”z�Store the stack top into the memo. The stack is not popped.

The index of the memo location to write is the number of
elements currently present in the memo.
ZEXT1�‚a�Extension code.

This code and the similar EXT2 and EXT4 allow using a registry
of popular objects that are pickled by name, typically classes.
It is envisioned that through a global negotiation and
registration process, third parties can set up a mapping between
ints and object names.

In order to guarantee pickle interchangeability, the extension
code registry ought to be global, although a range of codes may
be reserved for private use.

EXT1 has a 1-byte integer argument. This is used to index into the
extension registry, and the object at that index is pushed on the stack.
ZEXT2�ƒzNExtension code.

See EXT1. EXT2 has a two-byte integer argument.
ZEXT4�„zOExtension code.

See EXT1. EXT4 has a four-byte integer argument.
ZGLOBAL�ca�Push a global object (module.attr) on the stack.

Two newline-terminated strings follow the GLOBAL opcode. The first is
taken as a module name, and the second as a class name. The class
object module.class is pushed on the stack. More accurately, the
object returned by self.find_class(module, class) is pushed on the
stack, so unpickling subclasses can override this form of lookup.
Z STACK_GLOBAL�“z7Push a global object (module.attr) on the stack.
ZREDUCE�RaLPush an object built from a callable and an argument tuple.

The opcode is named to remind of the __reduce__() method.

Stack before: ... callable pytuple
Stack after: ... callable(*pytuple)

The callable and the argument tuple are the first two items returned
by a __reduce__ method. Applying the callable to the argtuple is
supposed to reproduce the original object, or at least get it started.
If the __reduce__ method returns a 3-tuple, the last component is an
argument to be passed to the object's __setstate__, and then the REDUCE
opcode is followed by code to create setstate's argument, and then a
BUILD opcode to apply __setstate__ to that argument.

If not isinstance(callable, type), REDUCE complains unless the
callable has been registered with the copyreg module's
safe_constructors dict, or the callable has a magic
'__safe_for_unpickling__' attribute with a true value. I'm not sure
why it does this, but I've sure seen this complaint often enough when
I didn't want to <wink>.
ZBUILD�ba�Finish building an object, via __setstate__ or dict update.

Stack before: ... anyobject argument
Stack after: ... anyobject

where anyobject may have been mutated, as follows:

If the object has a __setstate__ method,

anyobject.__setstate__(argument)

is called.

Else the argument must be a dict, the object must have a __dict__, and
the object is updated via

anyobject.__dict__.update(argument)
ZINST�iaqBuild a class instance.

This is the protocol 0 version of protocol 1's OBJ opcode.
INST is followed by two newline-terminated strings, giving a
module and class name, just as for the GLOBAL opcode (and see
GLOBAL for more details about that). self.find_class(module, name)
is used to get a class object.

In addition, all the objects on the stack following the topmost
markobject are gathered into a tuple and popped (along with the
topmost markobject), just as for the TUPLE opcode.

Now it gets complicated. If all of these are true:

+ The argtuple is empty (markobject was at the top of the stack
at the start).

+ The class object does not have a __getinitargs__ attribute.

then we want to create an old-style class instance without invoking
its __init__() method (pickle has waffled on this over the years; not
calling __init__() is current wisdom). In this case, an instance of
an old-style dummy class is created, and then we try to rebind its
__class__ attribute to the desired class object. If this succeeds,
the new instance object is pushed on the stack, and we're done.

Else (the argtuple is not empty, it's not an old-style class object,
or the class object does have a __getinitargs__ attribute), the code
first insists that the class object have a __safe_for_unpickling__
attribute. Unlike as for the __safe_for_unpickling__ check in REDUCE,
it doesn't matter whether this attribute has a true or false value, it
only matters whether it exists (XXX this is a bug). If
__safe_for_unpickling__ doesn't exist, UnpicklingError is raised.

Else (the class object does have a __safe_for_unpickling__ attr),
the class object obtained from INST's arguments is applied to the
argtuple obtained from the stack, and the resulting instance object
is pushed on the stack.

NOTE: checks for __safe_for_unpickling__ went away in Python 2.3.
NOTE: the distinction between old-style and new-style classes does
not make sense in Python 3.
ZOBJ�oa�Build a class instance.

This is the protocol 1 version of protocol 0's INST opcode, and is
very much like it. The major difference is that the class object
is taken off the stack, allowing it to be retrieved from the memo
repeatedly if several instances of the same class are created. This
can be much more efficient (in both time and space) than repeatedly
embedding the module and class names in INST opcodes.

Unlike INST, OBJ takes no arguments from the opcode stream. Instead
the class object is taken off the stack, immediately above the
topmost markobject:

Stack before: ... markobject classobject stackslice
Stack after: ... new_instance_object

As for INST, the remainder of the stack above the markobject is
gathered into an argument tuple, and then the logic seems identical,
except that no __safe_for_unpickling__ check is done (XXX this is
a bug). See INST for the gory details.

NOTE: In Python 2.3, INST and OBJ are identical except for how they
get the class object. That was always the intent; the implementations
had diverged for accidental reasons.
ZNEWOBJ�aLBuild an object instance.

The stack before should be thought of as containing a class
object followed by an argument tuple (the tuple being the stack
top). Call these cls and args. They are popped off the stack,
and the value returned by cls.__new__(cls, *args) is pushed back
onto the stack.
Z NEWOBJ_EX�’auBuild an object instance.

The stack before should be thought of as containing a class
object followed by an argument tuple and by a keyword argument dict
(the dict being the stack top). Call these cls and args. They are
popped off the stack, and the value returned by
cls.__new__(cls, *args, *kwargs) is pushed back onto the stack.
�PROTO�€z�Protocol version indicator.

For protocol 2 and above, a pickle must start with this opcode.
The argument is the protocol version, an int in range(2, 256).
ZSTOP�.z�Stop the unpickling machine.

Every pickle ends with this opcode. The object at the top of the stack
is popped, and that's the result of unpickling. The stack should be
empty then.
�FRAME�•z�Indicate the beginning of a new frame.

The unpickler may use this opcode to safely prefetch data from its
underlying stream.
ZPERSID�PaPush an object identified by a persistent ID.

The pickle module doesn't define what a persistent ID means. PERSID's
argument is a newline-terminated str-style (no embedded escapes, no
bracketing quote characters) string, which *is* "the persistent ID".
The unpickler passes this string to self.persistent_load(). Whatever
object that returns is pushed on the stack. There is no implementation
of persistent_load() in Python's unpickler: it must be supplied by an
unpickler subclass.
Z BINPERSID�QaXPush an object identified by a persistent ID.

Like PERSID, except the persistent ID is popped off the stack (instead
of being a string embedded in the opcode bytestream). The persistent
ID is passed to self.persistent_load(), and whatever object that
returns is pushed on the stack. See PERSID for more detail.
z%repeated name %r at indices %d and %dz%repeated code %r at indices %d and %dFcCstj�}x�tjD]�}tjd|�s2|rtd|�qtt|�}t|t � sTt
|�dkrj|rtd||f�q|j d�}||kr�|r�td||f�||}|j |kr�t
d|||j f��||=qt
d||f��qW|�rd g}x(|j�D]\}}|jd
|j |f�q�Wt
d j|���dS) Nz[A-Z][A-Z0-9_]+$z0skipping %r: it doesn't look like an opcode namerz5skipping %r: value %r doesn't look like a pickle codezlatin-1z+checking name %r w/ code %r for consistencyzBfor pickle code %r, pickle.py uses name %r but we're using name %rzPpickle.py appears to have a pickle opcode with name %r and code %r, but we don'tz=we appear to have pickle opcodes that pickle.py doesn't have:z name %r with code %r�
)�code2op�copy�pickle�__all__�re�match�print�getattrrerirr3r r�items�append�join)�verboser�r Z
picklecoder��msgrrrrr�assure_pickle_consistencys>   
 
 
 r�ccs�t|t�rtj|�}t|d�r&|j}ndd�}x�|�}|jd�}tj|j d��}|dkr�|dkrjt
d��nt
d|dkrzd n||f��|j dkr�d}n |j j |�}|r�||||�fVn |||fV|d
kr0Pq0WdS) N�tellcSsdS)Nrrrrr�<lambda>�sz_genops.<locals>.<lambda>rzlatin-1�z#pickle exhausted before seeing STOPz!at position %s, opcode %r unknownz <unknown>�.)
re� bytes_types�io�BytesIO�hasattrr�rr��getr3rrsr
)r�
yield_end_posZgetpos�posrr�opcodersrrr�_genops�s.






  r�cCst|�S)N)r�)r�rrrr�scCs�d}d}t�}i}g}d}d}x�t|dd�D]�\}} }
} d|jkr\|j| �|j|| f�q,|jdkr�t|�} |j| �|j|| f�q,d|jkr�q,d|jkr�|j|kr�|j}d|| <|j|| f�q,|jd k�r| |kr�| }|
dkr�||
| �}n|j|
| f�q,|j|
| f�q,W~tj�}
|
j |�t
j |
|�}|d
k�rJ|j j
�d} x�|D]x\}} ||k�r�| |k�rt�qT|j| �}| || <| d 7} n&||k�r�|j|| �}n ||| �}|j j�|j |��qTW|j j�|
j�S) Nr�r�rr�T)r�r�r�r�rr)rmr�r �addr�rrvr�r��writer�Z_PicklerZframerZ
start_framing�putr�Z commit_frameZ end_framing�getvalue)r�r�r�ZoldidsZnewids�opcodesrvZ protoheaderr�rsr�Zend_pos�idx�outZpickler�oprrrrr�sd






 
 






 

cCsg}|dkri}d}g}d|}d} |}
�x�t|�D�]�\} } }
|
dk rZtd|
d|d�dt| j�dd�|t|�| jf}t|| j�}| j}| j }t|�}d}t
|ks�| jdko�|o�|d t
k�rD|�r<|j �}|dkr�d}nd|}x|d!t
k �r|j �q�W|j �y|j t
�}Wnt
k
�r8d }YnXnd
} }| jd"k�r�| jdk�rnt|�}d|}n| }||k�r�d| } n,|�s�d} n |d#t
k�r�d} n |d$||<n*| jd%k�r�| |k�r�|| g}nd| } | dk �s�|�r0|ddt| j�7}| dk �r|dt| �7}|�r0|d|7}|�rz|d|
t|�7}t|�}
|
dk�r`|}
|d| jjdd�d 7}t||d�| �r�t
| ��t|�|k�r�t
d|t|�f��|�r�|| d�=t
|k�r�|j|
�|j|�q4Wtd||d�|�r
t
d|��dS)&Nr� z%5d:)�end�filez %-4s %s%sr�z(MARK at unknown opcode offset)z (MARK at %d)rzno MARK exists on stackr�r�r�r�z(as %d)zmemo key %r already definedz'stack is empty -- can't store into memoz"can't store markobject in the memor�r�r�z&memo key %r has never been stored into�
�2r�)r�z3tries to pop %d items from stack with only %d itemsz highest protocol among opcodes =zstack not empty after STOP: %rr-r-r-r-)r�r�r�r�r-r-)r�r�r�)rr��reprrrrr �maxrvrtru�
markobject�pop�indexrr�splitr��extend)r�r��memo� indentlevel�annotate�stackZmaxprotoZ markstackZ indentchunkZerrormsgZannocolr�rsr��lineZbefore�afterZnumtopopZmarkmsgZmarkposZmemo_idxrrrr% s�-

     


 
 
 
  

c@seZdZdd�ZdS)�_ExamplecCs
||_dS)N)�value)rr�rrrr� sz_Example.__init__N)rrrrrrrrr�� sr�a�
>>> import pickle
>>> x = [1, 2, (3, 4), {b'abc': "def"}]
>>> pkl0 = pickle.dumps(x, 0)
>>> dis(pkl0)
0: ( MARK
1: l LIST (MARK at 0)
2: p PUT 0
5: L LONG 1
9: a APPEND
10: L LONG 2
14: a APPEND
15: ( MARK
16: L LONG 3
20: L LONG 4
24: t TUPLE (MARK at 15)
25: p PUT 1
28: a APPEND
29: ( MARK
30: d DICT (MARK at 29)
31: p PUT 2
34: c GLOBAL '_codecs encode'
50: p PUT 3
53: ( MARK
54: V UNICODE 'abc'
59: p PUT 4
62: V UNICODE 'latin1'
70: p PUT 5
73: t TUPLE (MARK at 53)
74: p PUT 6
77: R REDUCE
78: p PUT 7
81: V UNICODE 'def'
86: p PUT 8
89: s SETITEM
90: a APPEND
91: . STOP
highest protocol among opcodes = 0

Try again with a "binary" pickle.

>>> pkl1 = pickle.dumps(x, 1)
>>> dis(pkl1)
0: ] EMPTY_LIST
1: q BINPUT 0
3: ( MARK
4: K BININT1 1
6: K BININT1 2
8: ( MARK
9: K BININT1 3
11: K BININT1 4
13: t TUPLE (MARK at 8)
14: q BINPUT 1
16: } EMPTY_DICT
17: q BINPUT 2
19: c GLOBAL '_codecs encode'
35: q BINPUT 3
37: ( MARK
38: X BINUNICODE 'abc'
46: q BINPUT 4
48: X BINUNICODE 'latin1'
59: q BINPUT 5
61: t TUPLE (MARK at 37)
62: q BINPUT 6
64: R REDUCE
65: q BINPUT 7
67: X BINUNICODE 'def'
75: q BINPUT 8
77: s SETITEM
78: e APPENDS (MARK at 3)
79: . STOP
highest protocol among opcodes = 1

Exercise the INST/OBJ/BUILD family.

>>> import pickletools
>>> dis(pickle.dumps(pickletools.dis, 0))
0: c GLOBAL 'pickletools dis'
17: p PUT 0
20: . STOP
highest protocol among opcodes = 0

>>> from pickletools import _Example
>>> x = [_Example(42)] * 2
>>> dis(pickle.dumps(x, 0))
0: ( MARK
1: l LIST (MARK at 0)
2: p PUT 0
5: c GLOBAL 'copy_reg _reconstructor'
30: p PUT 1
33: ( MARK
34: c GLOBAL 'pickletools _Example'
56: p PUT 2
59: c GLOBAL '__builtin__ object'
79: p PUT 3
82: N NONE
83: t TUPLE (MARK at 33)
84: p PUT 4
87: R REDUCE
88: p PUT 5
91: ( MARK
92: d DICT (MARK at 91)
93: p PUT 6
96: V UNICODE 'value'
103: p PUT 7
106: L LONG 42
111: s SETITEM
112: b BUILD
113: a APPEND
114: g GET 5
117: a APPEND
118: . STOP
highest protocol among opcodes = 0

>>> dis(pickle.dumps(x, 1))
0: ] EMPTY_LIST
1: q BINPUT 0
3: ( MARK
4: c GLOBAL 'copy_reg _reconstructor'
29: q BINPUT 1
31: ( MARK
32: c GLOBAL 'pickletools _Example'
54: q BINPUT 2
56: c GLOBAL '__builtin__ object'
76: q BINPUT 3
78: N NONE
79: t TUPLE (MARK at 31)
80: q BINPUT 4
82: R REDUCE
83: q BINPUT 5
85: } EMPTY_DICT
86: q BINPUT 6
88: X BINUNICODE 'value'
98: q BINPUT 7
100: K BININT1 42
102: s SETITEM
103: b BUILD
104: h BINGET 5
106: e APPENDS (MARK at 3)
107: . STOP
highest protocol among opcodes = 1

Try "the canonical" recursive-object test.

>>> L = []
>>> T = L,
>>> L.append(T)
>>> L[0] is T
True
>>> T[0] is L
True
>>> L[0][0] is L
True
>>> T[0][0] is T
True
>>> dis(pickle.dumps(L, 0))
0: ( MARK
1: l LIST (MARK at 0)
2: p PUT 0
5: ( MARK
6: g GET 0
9: t TUPLE (MARK at 5)
10: p PUT 1
13: a APPEND
14: . STOP
highest protocol among opcodes = 0

>>> dis(pickle.dumps(L, 1))
0: ] EMPTY_LIST
1: q BINPUT 0
3: ( MARK
4: h BINGET 0
6: t TUPLE (MARK at 3)
7: q BINPUT 1
9: a APPEND
10: . STOP
highest protocol among opcodes = 1

Note that, in the protocol 0 pickle of the recursive tuple, the disassembler
has to emulate the stack in order to realize that the POP opcode at 16 gets
rid of the MARK at 0.

>>> dis(pickle.dumps(T, 0))
0: ( MARK
1: ( MARK
2: l LIST (MARK at 1)
3: p PUT 0
6: ( MARK
7: g GET 0
10: t TUPLE (MARK at 6)
11: p PUT 1
14: a APPEND
15: 0 POP
16: 0 POP (MARK at 0)
17: g GET 1
20: . STOP
highest protocol among opcodes = 0

>>> dis(pickle.dumps(T, 1))
0: ( MARK
1: ] EMPTY_LIST
2: q BINPUT 0
4: ( MARK
5: h BINGET 0
7: t TUPLE (MARK at 4)
8: q BINPUT 1
10: a APPEND
11: 1 POP_MARK (MARK at 0)
12: h BINGET 1
14: . STOP
highest protocol among opcodes = 1

Try protocol 2.

>>> dis(pickle.dumps(L, 2))
0: \x80 PROTO 2
2: ] EMPTY_LIST
3: q BINPUT 0
5: h BINGET 0
7: \x85 TUPLE1
8: q BINPUT 1
10: a APPEND
11: . STOP
highest protocol among opcodes = 2

>>> dis(pickle.dumps(T, 2))
0: \x80 PROTO 2
2: ] EMPTY_LIST
3: q BINPUT 0
5: h BINGET 0
7: \x85 TUPLE1
8: q BINPUT 1
10: a APPEND
11: 0 POP
12: h BINGET 1
14: . STOP
highest protocol among opcodes = 2

Try protocol 3 with annotations:

>>> dis(pickle.dumps(T, 3), annotate=1)
0: \x80 PROTO 3 Protocol version indicator.
2: ] EMPTY_LIST Push an empty list.
3: q BINPUT 0 Store the stack top into the memo. The stack is not popped.
5: h BINGET 0 Read an object from the memo and push it on the stack.
7: \x85 TUPLE1 Build a one-tuple out of the topmost item on the stack.
8: q BINPUT 1 Store the stack top into the memo. The stack is not popped.
10: a APPEND Append an object to a list.
11: 0 POP Discard the top stack item, shrinking the stack by one item.
12: h BINGET 1 Read an object from the memo and push it on the stack.
14: . STOP Stop the unpickling machine.
highest protocol among opcodes = 2

a=
>>> import pickle
>>> import io
>>> f = io.BytesIO()
>>> p = pickle.Pickler(f, 2)
>>> x = [1, 2, 3]
>>> p.dump(x)
>>> p.dump(x)
>>> f.seek(0)
0
>>> memo = {}
>>> dis(f, memo=memo)
0: \x80 PROTO 2
2: ] EMPTY_LIST
3: q BINPUT 0
5: ( MARK
6: K BININT1 1
8: K BININT1 2
10: K BININT1 3
12: e APPENDS (MARK at 5)
13: . STOP
highest protocol among opcodes = 2
>>> dis(f, memo=memo)
14: \x80 PROTO 2
16: h BINGET 0
18: . STOP
highest protocol among opcodes = 2
)Zdisassembler_testZdisassembler_memo_testcCsddl}|j�S)Nr)�doctestZtestmod)r�rrr�_test�
sr��__main__z$disassemble one or more pickle files)Z description� pickle_file�br�*zthe pickle file)�type�nargs�helpz-oz--output�wz+the file where the output should be written)�defaultrrz-mz--memo�
store_truez#preserve memo between disassemblies)�actionrz-lz
--indentlevelz8the number of blanks by which to indent a new MARK levelz-az
--annotatez2annotate each line with a short opcode descriptionz-pz
--preamblez==> {name} <==zMif more than one pickle file is specified, print this before each disassembly)rrz-tz--testzrun self-test suitez-vz)run verbosely; only affects self-test run�)r r�r-������������)TT)F)F)NNrr)�r1r�r�r�rBr�r�Z
UP_TO_NEWLINEZTAKEN_FROM_ARGUMENT1ZTAKEN_FROM_ARGUMENT4ZTAKEN_FROM_ARGUMENT4UZTAKEN_FROM_ARGUMENT8U�objectr
Zstructrrrrr r!r"r#r$r%r'r(r6r7r8r9r:r;r<r=r>r?r@rArDrErFrGrIrJrLrMrNrOrPrQrTrVrWrXrZr[r\r]r^r_r`rarbrcrRZpyintZpylongrhZpyinteger_or_boolZpyboolrYZpyfloatrirHZpybytes_or_strZpystringZpybytesZ pyunicoderZpynonerfZpytuplerkZpylistrlZpydictrmZpysetZ pyfrozensetZ anyobjectr�rprqrxr�Zname2iZcode2i� enumerater�r�r rrrr�r�r�rrrr�Z _dis_testZ
_memo_testZ__test__r�r�argparse�ArgumentParser�parser� add_argumentZFileType�stdout�
parse_args�argsZtestr�r�Z
print_helpr�outputr�r�rZpreamble�formatr�rrrr�<module>
s�
$   /  
    
;  


   

 +
   

&

>