HEX
Server: LiteSpeed
System: Linux pl-rocket-da1.hostsila.org 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: etorby24eu (1588)
PHP: 8.3.23
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //lib/python2.7/site-packages/pymemcache-3.4.0-py2.7.egg/pymemcache/serde.pyc
�
�3`c@s�ddlmZddlZddlmZddlZddlmZy
e	Z
Wnek
rkdZ
nXdZ
dZdZdZdZdZejZdd
�Zed�Ze�Zd�Zd
efd��YZdefd��YZe�ZdS(i����(tpartialN(tBytesIO(tcPickleiiiiicCs�d}t|�}|tkr!n�|tjkrL|tO}|jd�}n�|tkro|tO}d|}njtjr�|t	kr�|t
O}d|}n>|tO}t�}t
j||�}|j|�|j�}||fS(Nitutf8s%d(ttypetbytestsixt	text_typet	FLAG_TEXTtencodetinttFLAG_INTEGERtPY2t	long_typet	FLAG_LONGtFLAG_PICKLERtpickletPicklertdumptgetvalue(tkeytvaluetpickle_versiontflagst
value_typetoutputtpickler((sO/usr/lib/python2.7/site-packages/pymemcache-3.4.0-py2.7.egg/pymemcache/serde.pyt_python_memcache_serializer+s&





	
cCsttd|�S(s3Return a serializer using a specific pickle versionR(RR(R((sO/usr/lib/python2.7/site-packages/pymemcache-3.4.0-py2.7.egg/pymemcache/serde.pytget_python_memcache_serializerJscCs�|dkr|S|t@r'|jd�S|t@r;t|�S|t@retjrXt|�St|�Sn^|t@r�y)t	|�}t
j|�}|j�SWq�t
k
r�tjddt�dSXn|S(NiRsPickle errortexc_info(RtdecodeRR
RRtPY3R
RRRt	Unpicklertloadt	ExceptiontloggingtinfotTruetNone(RRRtbuft	unpickler((sO/usr/lib/python2.7/site-packages/pymemcache-3.4.0-py2.7.egg/pymemcache/serde.pytpython_memcache_deserializerRs&




	



tPickleSerdecBs,eZdZed�Zd�Zd�ZRS(s
    An object which implements the serialization/deserialization protocol for
    :py:class:`pymemcache.client.base.Client` and its descendants using the
    :mod:`pickle` module.

    Serialization and deserialization are implemented as methods of this class.
    To implement a custom serialization/deserialization method for pymemcache,
    you should implement the same interface as the one provided by this object
    -- :py:meth:`pymemcache.serde.PickleSerde.serialize` and
    :py:meth:`pymemcache.serde.PickleSerde.deserialize`. Then,
    pass your custom object to the pymemcache client object in place of
    `PickleSerde`.

    For more details on the serialization protocol, see the class documentation
    for :py:class:`pymemcache.client.base.Client`
    cCst|�|_dS(N(Rt_serialize_func(tselfR((sO/usr/lib/python2.7/site-packages/pymemcache-3.4.0-py2.7.egg/pymemcache/serde.pyt__init__scCs|j||�S(N(R+(R,RR((sO/usr/lib/python2.7/site-packages/pymemcache-3.4.0-py2.7.egg/pymemcache/serde.pyt	serialize�scCst|||�S(N(R)(R,RRR((sO/usr/lib/python2.7/site-packages/pymemcache-3.4.0-py2.7.egg/pymemcache/serde.pytdeserialize�s(t__name__t
__module__t__doc__tDEFAULT_PICKLE_VERSIONR-R.R/(((sO/usr/lib/python2.7/site-packages/pymemcache-3.4.0-py2.7.egg/pymemcache/serde.pyR*ns	tLegacyWrappingSerdecBs)eZdZd�Zd�Zd�ZRS(s�
    This class defines how to wrap legacy de/serialization functions into a
    'serde' object which implements '.serialize' and '.deserialize' methods.
    It is used automatically by pymemcache.client.base.Client when the
    'serializer' or 'deserializer' arguments are given.

    The serializer_func and deserializer_func are expected to be None in the
    case that they are missing.
    cCs(|p|j|_|p|j|_dS(N(t_default_serializeR.t_default_deserializeR/(R,tserializer_functdeserializer_func((sO/usr/lib/python2.7/site-packages/pymemcache-3.4.0-py2.7.egg/pymemcache/serde.pyR-�scCs
|dfS(Ni((R,RR((sO/usr/lib/python2.7/site-packages/pymemcache-3.4.0-py2.7.egg/pymemcache/serde.pyR5�scCs|S(N((R,RRR((sO/usr/lib/python2.7/site-packages/pymemcache-3.4.0-py2.7.egg/pymemcache/serde.pyR6�s(R0R1R2R-R5R6(((sO/usr/lib/python2.7/site-packages/pymemcache-3.4.0-py2.7.egg/pymemcache/serde.pyR4�s			iiiii(t	functoolsRR#tioRRt	six.movesRRtlongR
t	NameErrorR&t
FLAG_BYTESRRRtFLAG_COMPRESSEDRtHIGHEST_PROTOCOLR3RRtpython_memcache_serializerR)tobjectR*R4tpickle_serde(((sO/usr/lib/python2.7/site-packages/pymemcache-3.4.0-py2.7.egg/pymemcache/serde.pyt<module>s,