Hacked By AnonymousFox

Current Path : /proc/thread-self/root/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/
Upload File :
Current File : //proc/thread-self/root/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyc

�
�Rec@s@dZddlmZddlZddlZejddkZer_eefZ	d�Z
neZ	eZe
Zd�Z
ejdd	fkr�eZd
�Zn	d�Zeed�r dd
lmZyddlmZWn!ek
rddlmZnXeZdefd��YZneZddlmZd�Zddl m!Z!m"Z"m#Z#m$Z$m%Z%ddl&m'Z'm(Z(dZ)dZ*dZ+dZ,dZ-dZ.dZ/dZ0dZ1d	Z2dZ3e4e5d�Z6d�Z7d�Z8ejdddfkrdd�Z9n	ej:Z9defd ��YZ;d!efd"��YZ<dS(#s.Fallback pure Python implementation of msgpacki����(tdatetimeNiicCs
|j�S(N(t	iteritems(td((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pytdict_iteritemsscCs
|j�S(N(titems(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyRsiicCs?t|j�dko>t|jdt�o>|jdjd�S(Niis maximum recursion depth exceeded(tlentargst
isinstancetstrt
startswith(te((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyt_is_recursionerrorscCstS(N(tTrue(R
((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyR'stpypy_version_info(tnewlist_hint(tBytesBuilder(t
StringBuildertStringIOcBs&eZdd�Zd�Zd�ZRS(tcCs>|r.tt|��|_|jj|�nt�|_dS(N(RRtbuildertappend(tselfts((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyt__init__7scCsPt|t�r|j�}nt|t�r<t|�}n|jj|�dS(N(Rt
memoryviewttobytest	bytearraytbytesRR(RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pytwrite>s
cCs
|jj�S(N(Rtbuild(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pytgetvalueEs(t__name__t
__module__RRR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyR6s	(tBytesIOcCsgS(N((tsize((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyt<lambda>MRi(t
BufferFullt	OutOfDatat	ExtraDatatFormatErrort
StackError(tExtTypet	Timestampii�cCs6||�|kr"||�|kS||�|kSdS(N((tobjttttypettuple((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyt_check_type_strictdscCs.t|�}|jdkr*td��n|S(Nis$cannot unpack from multi-byte object(Rtitemsizet
ValueError(R+tview((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyt_get_data_from_bufferkscKs�tddt|�|�}|j|�y|j�}WnGtk
rWtd��n+tk
r�}t|�r{t	�n�nX|j
�r�t||j���n|S(sw
    Unpack an object from `packed`.

    Raises ``ExtraData`` when *packed* contains extra bytes.
    Raises ``ValueError`` when *packed* is incomplete.
    Raises ``FormatError`` when *packed* is not valid msgpack.
    Raises ``StackError`` when *packed* contains too nested.
    Other exceptions can be raised during unpacking.

    See :class:`Unpacker` for options.
    tmax_buffer_sizesUnpack failed: incomplete inputN(
tUnpackertNoneRtfeedt_unpackR%R1tRecursionErrorRR(t_got_extradataR&t_get_extradata(tpackedtkwargstunpackertretR
((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pytunpackbrs

	iicCstj|t|�|�S(s0Explicit type cast for legacy struct.unpack_from(tstructtunpack_fromR(tftbto((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyt_unpack_from�sR5cBs�eZdZddeededddddedddddd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zed
�Zed�Zd�Zd�ZeZd�Zd�Zd�Zd�Zd�ZRS(s�Streaming unpacker.

    Arguments:

    :param file_like:
        File-like object having `.read(n)` method.
        If specified, unpacker reads serialized data from it and :meth:`feed()` is not usable.

    :param int read_size:
        Used as `file_like.read(read_size)`. (default: `min(16*1024, max_buffer_size)`)

    :param bool use_list:
        If true, unpack msgpack array to Python list.
        Otherwise, unpack to Python tuple. (default: True)

    :param bool raw:
        If true, unpack msgpack raw to Python bytes.
        Otherwise, unpack to Python str by decoding with UTF-8 encoding (default).

    :param int timestamp:
        Control how timestamp type is unpacked:

            0 - Timestamp
            1 - float  (Seconds from the EPOCH)
            2 - int  (Nanoseconds from the EPOCH)
            3 - datetime.datetime  (UTC).  Python 2 is not supported.

    :param bool strict_map_key:
        If true (default), only str or bytes are accepted for map (dict) keys.

    :param callable object_hook:
        When specified, it should be callable.
        Unpacker calls it with a dict argument after unpacking msgpack map.
        (See also simplejson)

    :param callable object_pairs_hook:
        When specified, it should be callable.
        Unpacker calls it with a list of key-value pairs after unpacking msgpack map.
        (See also simplejson)

    :param str unicode_errors:
        The error handler for decoding unicode. (default: 'strict')
        This option should be used only when you have msgpack data which
        contains invalid UTF-8 string.

    :param int max_buffer_size:
        Limits size of data waiting unpacked.  0 means 2**32-1.
        The default value is 100*1024*1024 (100MiB).
        Raises `BufferFull` exception when it is insufficient.
        You should set this parameter when unpacking data from untrusted source.

    :param int max_str_len:
        Deprecated, use *max_buffer_size* instead.
        Limits max length of str. (default: max_buffer_size)

    :param int max_bin_len:
        Deprecated, use *max_buffer_size* instead.
        Limits max length of bin. (default: max_buffer_size)

    :param int max_array_len:
        Limits max length of array.
        (default: max_buffer_size)

    :param int max_map_len:
        Limits max length of map.
        (default: max_buffer_size//2)

    :param int max_ext_len:
        Deprecated, use *max_buffer_size* instead.
        Limits max size of ext type.  (default: max_buffer_size)

    Example of streaming deserialize from file-like object::

        unpacker = Unpacker(file_like)
        for o in unpacker:
            process(o)

    Example of streaming deserialize from socket::

        unpacker = Unpacker(max_buffer_size)
        while True:
            buf = sock.recv(1024**2)
            if not buf:
                break
            unpacker.feed(buf)
            for o in unpacker:
                process(o)

    Raises ``ExtraData`` when *packed* contains extra bytes.
    Raises ``OutOfData`` when *packed* is incomplete.
    Raises ``FormatError`` when *packed* is not valid msgpack.
    Raises ``StackError`` when *packed* contains too nested.
    Other exceptions can be raised during unpacking.
    iidii����cCs�|
dkrd}
n|dkr-t|_n0t|j�sKtd��n||_t|_t�|_	d|_
d|_|s�d}n|
dkr�|}
n|dkr�|}n|dkr�|}n|dkr�|d}n|dkr�|}n||_||jkrt
d��n|p3t|jd�|_t|�|_t|�|_|
|_||_d|ko�dkns�t
d��n||_|	|_||_||_||_|
|_||_||_||_||_d|_|	dk	rt|	�rtd
��n|dk	rGt|�rGtd��n|dk	rot|�rotd��n|dk	r�|dk	r�td��nt|�s�td��ndS(Ntstricts!`file_like.read` must be callableiiiii����s.read_size must be smaller than max_buffer_sizeiiistimestamp must be 0..3s`list_hook` is not callables`object_hook` is not callables#`object_pairs_hook` is not callables8object_pairs_hook and object_hook are mutually exclusives`ext_hook` is not callableI�i���i@( R6Rt_feedingtcallabletreadt	TypeErrort	file_liketFalseRt_buffert_buff_it_buf_checkpointt_max_buffer_sizeR1tmint
_read_sizetboolt_rawt_strict_map_keyt_unicode_errorst	_use_listt
_timestampt
_list_hookt_object_hookt_object_pairs_hookt	_ext_hookt_max_str_lent_max_bin_lent_max_array_lent_max_map_lent_max_ext_lent_stream_offset(RRLt	read_sizetuse_listtrawt	timestamptstrict_map_keytobject_hooktobject_pairs_hookt	list_hooktunicode_errorsR4text_hooktmax_str_lentmax_bin_lent
max_array_lentmax_map_lentmax_ext_len((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyR�sn										
															cCs�|jst�t|�}t|j�|jt|�|jkrMt�n|jdkr�|j|j4|j|j8_d|_n|jj	|�dS(Ni(
RHtAssertionErrorR3RRNRORQR$RPtextend(Rt
next_bytesR2((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyR7Us)	
cCs)|j|j|j7_|j|_dS(s+ Gets rid of the used parts of the buffer. N(RcRORP(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyt_consumedscCs|jt|j�kS(N(RORRN(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyR:iscCs|j|jS(N(RNRO(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyR;lscCs|j|�}|j�|S(N(t_readRv(RtnR?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyt
read_bytesos
cCs5|j|�|j}|||_|j|||!S(N(t_reserveRORN(RRxti((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyRwts
	
cCs0t|j�|j|}|dkr*dS|jrH|j|_t�n|jdkr�|j|j4|j|j8_d|_n|}xr|dkr�t|j|�}|jj	|�}|s�Pnt
|t�s�t�|j|7_|t|�8}q�Wt|j�||jkr,d|_t�ndS(Ni(
RRNRORHRPR%tmaxRSRLRJRRRs(RRxtremain_bytest
to_read_bytest	read_data((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyRz{s,		
	cCsH
t}d}d}|jd�|j|j}|jd7_|d@dkrW|}n�|d@dkrxd|dA}n�|d@dkr�|d@}t}||jkr�td	||j��n|j|�}nj|d
@dkr|d@}t	}||j
kr;
td
||j
��q;
n |d
@dkre|d@}t}||jkr;
td||j��q;
n�|dkrzd}n�|dkr�t
}n�|dkr�t}n�|dkrt}|jd�|j|j}|jd7_||jkr
td||jf��n|j|�}n|dkr�t}|jd�td|j|j�d}|jd7_||jkr�td||jf��n|j|�}n�
|dkr-t}|jd�td|j|j�d}|jd7_||jkrtd||jf��n|j|�}n
|dkr�t}|jd�td|j|j�\}}|jd7_||jkr�td||jf��n|j|�}n�	|dkr?t}|jd�td|j|j�\}}|jd7_||jkr-td||jf��n|j|�}n�|d kr�t}|jd!�td"|j|j�\}}|jd!7_||jkr�td||jf��n|j|�}ns|d#kr|jd�td$|j|j�d}|jd7_n,|d%krV|jd&�td'|j|j�d}|jd&7_n�|d(kr�|jd�|j|j}|jd7_n�|d)kr�|jd�td|j|j�d}|jd7_nc|d*kr|jd�td|j|j�d}|jd7_n|d+krf|jd&�td,|j|j�d}|jd&7_n�|d-kr�|jd�td.|j|j�d}|jd7_n�|d/kr�|jd�td0|j|j�d}|jd7_nG|d1kr;|jd�td2|j|j�d}|jd7_n|d3kr�|jd&�td4|j|j�d}|jd&7_n�|d5kr�t}|jdkr�tdd|jf��n|jd�td6|j|j�\}}|jd7_n?|d7krvt}|jdkr9tdd|jf��n|jd�td8|j|j�\}}|jd7_n�|d9kr�t}|jdkr�tdd|jf��n|jd!�td:|j|j�\}}|jd!7_nK|d;krj	t}|jd&kr-	tdd&|jf��n|jd<�td=|j|j�\}}|jd<7_n�|d>kr�	t}|jd?kr�	tdd?|jf��n|jd@�tdA|j|j�\}}|jd@7_nW|dBkr[
t}|jd�|j|j}|jd7_||jkrI
td	||j��n|j|�}n�|dCkr�
t}|jd�td|j|j�\}|jd7_||jkr�
td	||j��n|j|�}n^|dDkr_t}|jd�td|j|j�\}|jd7_||jkrMtd	||j��n|j|�}n�|dEkr�t	}|jd�td|j|j�\}|jd7_||j
kr;
td
||j
��q;
ni|dFkrEt	}|jd�td|j|j�\}|jd7_||j
kr;
td
||j
��q;
n�|dGkr�|jd�td|j|j�\}|jd7_||jkr�td||j��nt}n�|dHkr+
|jd�td|j|j�\}|jd7_||jkr"
td||j��nt}ntdI|��|||fS(JNiii�i�i����i�i�is%s exceeds max_str_len(%s)i�i�is%s exceeds max_array_len(%s)s%s exceeds max_map_len(%s)i�i�i�i�s%s exceeds max_bin_len(%s)i�is>Hi�is>Ii�tBbs%s exceeds max_ext_len(%s)i�is>Hbi�is>Ibi�s>fi�is>di�i�i�i�s>Qi�RDi�s>hi�s>ii�s>qi�tb1si�tb2si�tb4si�i	tb8si�iitb16si�i�i�i�i�i�i�sUnknown header: 0x%x(tTYPE_IMMEDIATER6RzRNROtTYPE_RAWR^R1Rwt
TYPE_ARRAYR`tTYPE_MAPRaRMRtTYPE_BINR_RFtTYPE_EXTRbR'(RtexecutettypRxR+RDtL((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyt_read_header�s�
	


			


























	
	c
s��j|�\}}}|tkrC|tkr?td��n|S|tkrn|tkrjtd��n|S|tkr|tkr�x!t|�D]}�jt�q�WdSt	|�}x*t|�D]}|j
�jt��q�W�jdk	r�j|�}n�jr|St|�S|tkrr|tkrlx.t|�D] }�jt��jt�qDWdS�jdk	r��j�fd�t|�D��}n�i}x�t|�D]�}�jt�}�jrt|�ttfkrtdtt|����ntr6t|�tkr6tj|�}n�jt�||<q�W�jdk	rn�j|�}n|S|tkr�dS|tkr��jr�t|�}n|jd�j�}|S|tkr�t|�S|tkrm|dkrTt j!t|��}	�j"dkr|	j#�S�j"dkr4|	j$�S�j"d	krM|	j%�S|	Sqm�j&|t|��Sn|t'kst(�|S(
NsExpected arraysExpected mapc3s-|]#}�jt��jt�fVqdS(N(R8tEX_CONSTRUCT(t.0t_(R(s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pys	<genexpr>�ss%s is not allowed for map keytutf_8i����iii()R�tEX_READ_ARRAY_HEADERR�R1tEX_READ_MAP_HEADERR�tEX_SKIPtxrangeR8RRR�RZR6RXR.R\RVR-tunicodeRRtPY2tsystinternR[R�RUtdecodeRWR�R�R*t
from_bytesRYtto_unixtto_unix_nanotto_datetimeR]R�Rs(
RR�R�RxR+R{R?R�tkeytts((Rs�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyR8os�
!	



cCs|S(N((R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyt__iter__�scCs_y!|jt�}|j�|SWn7tk
rD|j�t�ntk
rZt�nXdS(N(R8R�RvR%t
StopIterationR9R((RR?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyt__next__�s


	
cCs|jt�|j�dS(N(R8R�Rv(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pytskip�s
cCs;y|jt�}Wntk
r,t�nX|j�|S(N(R8R�R9R(Rv(RR?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pytunpack�s


cCs|jt�}|j�|S(N(R8R�Rv(RR?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pytread_array_header�s
cCs|jt�}|j�|S(N(R8R�Rv(RR?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pytread_map_header�s
cCs|jS(N(Rc(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyttell�sNi�i@(RR t__doc__R6RRMR)RR7RvR:R;RyRwRzR�R�R8R�R�tnextR�R�R�R�R�(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyR5�sF^K							 �M						tPackercBs�eZdZdeeeeedd�Zeee	d�Z
d�Zd�Zd�Z
d�Zd�Zd�Zd	�Zed
�Zd�Zd�Zd
�Zd�Zd�ZRS(sg
    MessagePack Packer

    Usage:

        packer = Packer()
        astream.write(packer.pack(a))
        astream.write(packer.pack(b))

    Packer's constructor has some keyword arguments:

    :param callable default:
        Convert user type to builtin type that Packer supports.
        See also simplejson's document.

    :param bool use_single_float:
        Use single precision float type for float. (default: False)

    :param bool autoreset:
        Reset buffer after each pack and return its content as `bytes`. (default: True).
        If set this to false, use `bytes()` to get content and `.reset()` to clear buffer.

    :param bool use_bin_type:
        Use bin type introduced in msgpack spec 2.0 for bytes.
        It also enables str8 type for unicode. (default: True)

    :param bool strict_types:
        If set to true, types will be checked to be exact. Derived classes
        from serializable types will not be serialized and will be
        treated as unsupported type and forwarded to default.
        Additionally tuples will not be serialized as lists.
        This is useful when trying to implement accurate serialization
        for python types.

    :param bool datetime:
        If set to true, datetime with tzinfo is packed into Timestamp type.
        Note that the tzinfo is stripped in the timestamp.
        You can get UTC datetime with `timestamp=3` option of the Unpacker.
        (Python 2 is not supported).

    :param str unicode_errors:
        The error handler for encoding unicode. (default: 'strict')
        DO NOT USE THIS!!  This option is kept for very specific usage.
    cCs�||_||_||_||_t�|_trK|rKtd��nt|�|_	|pcd|_
|dk	r�t|�s�t
d��q�n||_dS(Ns%datetime is not supported in Python 2RGsdefault must be callable(t
_strict_typest
_use_floatt
_autoresett
_use_bin_typeRRNR�R1RTt	_datetimeRWR6RIRKt_default(Rtdefaulttuse_single_floatt	autoresettuse_bin_typetstrict_typesRRl((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyRs
				cCs�t}|jr|}t}nttf}xVtr�|dkrNtd��n|dkrj|jjd�S||t	�r�|r�|jjd�S|jjd�S||t
�r6d|ko�dknr�|jjtjd|��Sd|ko�dknr|jjtjd	|��Sd|ko5d
knrY|jjtjdd|��Sd
|kopdknr�|jjtjdd|��Sd
|ko�dknr�|jjtjdd|��Sd|ko�d
knr
|jjtjdd|��Sd|ko!dknrE|jjtjdd|��Sd|ko\dknr�|jjtjdd|��Sd|ko�dknr�|jjtjdd|��Sd|ko�dknr�|jjtjd d!|��S|r'|j
dk	r'|j
|�}t}q-ntd"��n||ttf�r�t|�}|d<krtd%t|�j��n|j|�|jj|�S||t�r|jd&|j�}t|�}|d=kr�td'��n|j|�|jj|�S||t�r^t|�|j}|d>krAtd(��n|j|�|jj|�S||t�r�|jr�|jjtjd)d*|��S|jjtjd+d,|��S||ttf�r{||t�r�d-}|j�}	n|j }|j!}	t"|t#�st$�t"|	t�s)t$�t|	�}
|
d.krT|jjd/�n�|
d#krs|jjd0�n�|
d1kr�|jjd2�n�|
d3kr�|jjd4�n�|
d5kr�|jjd6�n{|
d
kr�|jjtjd7d8|
��nM|
dkr,|jjtjdd9|
��n|jjtjdd:|
��|jjtjd	|��|jj|	�dS|||�r�t|�}|j%|�x,t&|�D]}|j'|||d.�q�WdS||t(�r|j)t|�t*|�|d.�S|j+r;||t,�r;tj-|�}d.}q-n|rl|j
dk	rl|j
|�}d.}q-nt.d;|f��q-WdS(?Nisrecursion limit exceededs�s�s�i�tBi��RDi�tBBi�i����s>Bbi�i��s>BHi�i���s>Bhi�I����s>BIi�i�s>Bii�l����s>BQi�I�s>Bqi�sInteger value out of rangeii s%s is too largesutf-8sString is too largesMemoryview is too larges>Bfi�s>Bdi�i����is�s�is�is�is�s>BBi�i�i�sCannot serialize %rIII(/RMR�tlistR.RR1R6RNRRTt	int_typesRAtpackR�t
OverflowErrorRRRR-Rt_pack_bin_headerR�tencodeRWt_pack_raw_headerRR0tfloatR�R)R*tto_bytestcodetdataRtintRst_pack_array_headerR�t_packtdictt_pack_map_pairsRR�t	_DateTimet
from_datetimeRK(RR+t
nest_limittchecktcheck_type_stricttdefault_usedt
list_typesRxR�R�R�R{((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyR�,s�			


			""
cCsVy|j|�Wnt�|_�nX|jrR|jj�}t�|_|SdS(N(R�RRNR�R(RR+R?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyR��s	cCsB|jt|�|�|jr>|jj�}t�|_|SdS(N(R�RR�RNRR(RtpairsR?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pytpack_map_pairs�s
	cCsN|dkrt�n|j|�|jrJ|jj�}t�|_|SdS(Nii I(R1R�R�RNRR(RRxR?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pytpack_array_header�s	
	cCsN|dkrt�n|j|�|jrJ|jj�}t�|_|SdS(Nii I(R1t_pack_map_headerR�RNRR(RRxR?((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pytpack_map_header�s	
	cCs�t|t�std��nd|ko5dknsItd��nt|t�sgtd��nt|�}|dkr�td��n|dkr�|jjd	�n�|d
kr�|jjd�n�|dkr�|jjd
�n�|dkr
|jjd�n�|dkr)|jjd�n~|dkrX|jjdtj	d|��nO|dkr�|jjdtj	d|��n |jjdtj	d|��|jjtj	d|��|jj|�dS(Nstypecode must have int type.iistypecode should be 0-127sdata must have bytes typeI����sToo large datais�is�is�is�is�i�s�R�i��s�s>Hs�s>I(
RR�RKR1RRRNRRAR�(RttypecodeR�R�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyt
pack_ext_type�s4## cCs�|dkr,|jjtjdd|��S|dkrW|jjtjdd|��S|dkr�|jjtjdd	|��Std
��dS(NiR�i�i��s>BHi�I����s>BIi�sArray is too large(RNRRAR�R1(RRx((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyR��s cCs�|dkr,|jjtjdd|��S|dkrW|jjtjdd|��S|dkr�|jjtjdd	|��Std
��dS(NiR�i�i��s>BHi�I����s>BIi�sDict is too large(RNRRAR�R1(RRx((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyR��s cCsP|j|�x<|D]4\}}|j||d�|j||d�qWdS(Ni(R�R�(RRxR�R�tktv((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyR��s
cCs�|dkr/|jjtjdd|��n�|jrf|dkrf|jjtjdd|��nh|dkr�|jjtjdd	|��n:|d
kr�|jjtjdd|��ntd
��dS(NiR�i�i�s>BBi�i��s>BHi�I����s>BIi�sRaw is too large(RNRRAR�R�R1(RRx((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyR��s#"""cCs�|js|j|�S|dkrA|jjtjdd|��S|dkrl|jjtjdd|��S|dkr�|jjtjdd	|��Std
��dS(Ni�s>BBi�i��s>BHi�I����s>BIi�sBin is too large(R�R�RNRRAR�R1(RRx((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyR�s	
cCs
|jj�S(s/Return internal buffer contents as bytes object(RNR(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyRscCst�|_dS(sYReset internal buffer.

        This method is useful only when autoreset=False.
        N(RRN(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pytresetscCs-tstrt|j��S|jj�SdS(sReturn view of internal buffer.N(tUSING_STRINGBUILDERR�RRRNt	getbuffer(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyR�"sN(RR R�R6RMRRtDEFAULT_RECURSE_LIMITRR/R�R�R�R�R�R�R�R�R�R�R�RR�R�(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyR��s0,u															(=R�RR�R�RAtversion_infoR�R�tlongR�RRR�trangeR�tRuntimeErrorR9Rthasattrt__pypy__Rt__pypy__.buildersRRtImportErrorRR�tobjectRRMtioR!t
exceptionsR$R%R&R'R(textR)R*R�R�R�R�R�R�R�R�R�R�R�R-R.R/R3R@RFRBR5R�(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/msgpack/fallback.pyt<module>sb	
	
	(			��P

Hacked By AnonymousFox1.0, Coded By AnonymousFox