ok
Direktori : /proc/thread-self/root/opt/alt/python38/lib64/python3.8/__pycache__/ |
Current File : //proc/thread-self/root/opt/alt/python38/lib64/python3.8/__pycache__/pickle.cpython-38.pyc |
U @��d� � @ sh d Z ddlmZ ddlmZ ddlmZmZmZ ddlm Z ddl mZ ddlZddlm Z dd lmZmZ ddlZddlZddlZddlZd ddd dddddg ZzddlmZ e�d� dZW n ek r� dZY nX eefZdZddddddddgZdZ d Z!G d!d � d e"�Z#G d"d� de#�Z$G d#d� de#�Z%G d$d%� d%e"�Z&zdd&l'm(Z( W n ek �rl dZ(Y nX d'Z)d(Z*d)Z+d*Z,d+Z-d,Z.d-Z/d.Z0d/Z1d0Z2d1Z3d2Z4d3Z5d4Z6d5Z7d6Z8d7Z9d8Z:d9Z;d:Z<d;Z=d<Z>d=Z?d>Z@d?ZAd@ZBdAZCdBZDdCZEdDZFdEZGdFZHdGZIdHZJdIZKdJZLdKZMdLZNdMZOdNZPdOZQdPZRdQZSdRZTdSZUdTZVdUZWdVZXdWZYdXZZdYZ[dZZ\d[Z]d\Z^d]Z_eOeYeZe[gZ`d^Zad_Zbd`ZcdaZddbZedcZfddZgdeZhdfZidgZjdhZkdiZldjZmdkZndlZoe�pdmdn� eq� D �� G dodp� dp�ZrG dqdr� dr�Zsdsdt� Ztdudv� Zudwdx� Zvdydz� ZwG d{d|� d|�ZxG d}d~� d~�Zyd�ddd�d�d��Zzd�ddd�d�d��Z{dd�d�dd��d�d��Z|dd�d�dd��d�d��Z}z0dd�lm#Z#m$Z$m%Z%m~Z~mZm�Z�m�Z�m�Z�m�Z� W n4 ek �r� exey Z~Zeze{e|e}f\Z�Z�Z�Z�Y nX d�d�� Z�e�d�k�rdddl�Z�e�j�d�d��Z�e�j�d�e���d��d�d�d�� e�j�d�d�d�d�d�� e�j�d�d�d�d�� e���� Z�e�j��r*e�� n:e�j��s<e���� n(ddl�Z�e�j�D ]Z�e�e��Z�e���e�� �qJdS )�a� Create portable serialized representations of Python objects. See module copyreg for a mechanism for registering custom picklers. See module pickletools source for extensive comments. Classes: Pickler Unpickler Functions: dump(object, file) dumps(object) -> string load(file) -> object loads(string) -> object Misc variables: __version__ format_version compatible_formats � )�FunctionType)�dispatch_table)�_extension_registry�_inverted_registry�_extension_cache)�islice)�partialN)�maxsize)�pack�unpack�PickleError� PicklingError�UnpicklingError�Pickler� Unpickler�dump�dumps�load�loads)�PickleBufferr TFz4.0z1.0z1.1z1.2z1.3z2.0z3.0z5.0� � c @ s e Zd ZdZdS )r z6A common base class for the other pickling exceptions.N��__name__� __module__�__qualname__�__doc__� r r �+/opt/alt/python38/lib64/python3.8/pickle.pyr I s c @ s e Zd ZdZdS )r z]This exception is raised when an unpicklable object is passed to the dump() method. Nr r r r r r M s c @ s e Zd ZdZdS )r a This exception is raised when there is a problem unpickling an object, such as a security violation. Note that other exceptions may also be raised during unpickling, including (but not necessarily limited to) AttributeError, EOFError, ImportError, and IndexError. Nr r r r r r T s c @ s e Zd Zdd� ZdS )�_Stopc C s || _ d S �N)�value��selfr! r r r �__init__b s z_Stop.__init__N)r r r r$ r r r r r a s r )�PyStringMap� (� .� 0� 1� 2� F� I� J� K� L� M� N� P� Q� R� S� T� U� V� X� a� b� c� d� }� e� g� h� i� j� l� ]� o� p� q� r� s� t� )� u� Gs I01 s I00 � �� �� �� �� �� �� �� �� �� �� �� �� B� C� �� �� �� �� �� �� �� �� �� �� �� �� �c C s g | ]}t �d |�r|�qS )z[A-Z][A-Z0-9_]+$)�re�match)�.0�xr r r � <listcomp>� s rn c @ sF e Zd ZdZdZdd� Zdd� Zdd� Zdd d�Zdd � Z dd� Z dS )�_Framerr i c C s || _ d | _d S r )� file_write� current_frame)r# rp r r r r$ � s z_Framer.__init__c C s t �� | _d S r )�io�BytesIOrq �r# r r r � start_framing� s z_Framer.start_framingc C s* | j r&| j �� dkr&| jdd� d | _ d S )Nr T��force)rq �tell�commit_framert r r r �end_framing� s z_Framer.end_framingFc C sf | j rb| j }|�� | jks|rb|�� }| j}t|�| jkrP|ttdt|�� � ||� t � � | _ d S )N�<Q)rq rx �_FRAME_SIZE_TARGET� getbufferrp �len�_FRAME_SIZE_MIN�FRAMEr rr rs )r# rw �f�data�writer r r ry � s z_Framer.commit_framec C s | j r| j �|�S | �|�S d S r )rq r� rp �r# r� r r r r� � s z _Framer.writec C s, | j }| jr| jdd� ||� ||� d S )NTrv )rp rq ry )r# �headerZpayloadr� r r r �write_large_bytes� s z_Framer.write_large_bytesN)F)r r r r r| r$ ru rz ry r� r� r r r r ro � s ro c @ s6 e Zd Zddd�Zdd� Zdd� Zdd � Zd d� ZdS ) � _UnframerNc C s || _ || _d | _d S r )� file_read� file_readlinerq )r# r� r� Z file_tellr r r r$ s z_Unframer.__init__c C s� | j rb| j �|�}|dkrJt|�dkrJd | _ t|�}| �|�|d d �<