Your IP : 3.145.105.85


Current Path : /opt/alt/python310/lib64/python3.10/dbm/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/dbm/__pycache__/__init__.cpython-310.opt-2.pyc

o

6��f��@s�	gd�ZddlZddlZddlZddlZGdd�de�Zgd�ZdaiZ	ee
fZzddlmZWne
y<dZYnwdd	d
�Zdd�Zed
kr]ejdd�D]
Zeee�pYde�qQdSdS))�open�whichdb�error�Nc@seZdZdS)rN)�__name__�
__module__�__qualname__�rr�3/opt/alt/python310/lib64/python3.10/dbm/__init__.pyr&sr)�dbm.gnu�dbm.ndbm�dbm.dumb)�ndbm�r�c	Cs�	tdur-tD]}z	t|dgd�}Wn	tyYqwts |a|t|<qts-tdt��d|vr5t|�nd}|durLd|vsCd|vrFt}n!tdd��|dkrVtdd	��|tvrctdd
�|���t|}|�|||�S)Nr)�fromlistzno dbm clone found; tried %s�n�crz=db file doesn't exist; use 'c' or 'n' flag to create a new db�zdb type could not be determinedz/db type is {0}, but the module is not available)	�_defaultmod�_names�
__import__�ImportError�_modulesrr�formatr)�file�flag�mode�name�mod�resultrrr	r5s4�
�rcCs	zt�|dd�}|��t�|dd�}|��WdStyNzt�|dd�}|��tdurAt�|�}|��WYdSWn	tyKYnwYnwz;t�|d�t�|d�j}|dkrfWdSt�|dd�}z|�d	�d
vr~W|��WdSW|��n|��wWn	ty�Ynwzt�|d�}Wn
ty�YdSw|�
|�d�}Wd�n1s�wY|dd�}t	|�dkr�d
Sz	t
�d|�\}Wnt
jy�Yd
Sw|dvr�dSzt
�d|dd��\}Wd
St
j�yYd
Sw)Nz.pag�rbz.dirrz.dbz.datrr�)�'�"��rz=l)iΚWi͚WiϚWr
���)
�ior�close�OSErrorr
�os�stat�st_size�read�len�structZunpackr)�filename�f�d�sizeZs16�s�magicrrr	rbsx

�����������r�__main__r!ZUNKNOWN)rr)�__all__r'r*r/�sys�	Exceptionrrrrr)Zdbmr
rrrr�argvr0�printrrrr	�<module>s.�
-Y�

?>