Your IP : 18.224.38.176


Current Path : /proc/self/root/opt/alt/python37/lib64/python3.7/dbm/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python37/lib64/python3.7/dbm/__pycache__/__init__.cpython-37.opt-2.pyc

B

YI~d��@s�dddgZddlZddlZddlZddlZGdd�de�ZdddgZdaiZ	ee
fZydd	lmZWne
k
r|dZYnXddd�Zd
d�Zedkr�x(ejdd�D]Zeee�p�de�q�WdS)�open�whichdb�error�Nc@seZdZdS)rN)�__name__�
__module__�__qualname__�rr�1/opt/alt/python37/lib64/python3.7/dbm/__init__.pyr&szdbm.gnuzdbm.ndbmzdbm.dumb)�ndbm�r�c	Cs�tdkr`xFtD]>}yt|dgd�}Wntk
r:wYnXtsD|a|t|<qWts`tdt��d|krpt|�nd}|dkr�d|ks�d|kr�t}q�tdd��n:|dkr�tdd	��n$|tkr�tdd
�|���nt|}|�|||�S)Nr)�fromlistzno dbm clone found; tried %s�n�crz#need 'c' or 'n' flag to open 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	r5s.


cCs�y4t�|dd�}|��t�|dd�}|��dStk
r�y:t�|dd�}|��tdk	r|t�|�}|��dSWntk
r�YnXYnXy`t�|d�t�|d�j}|dkr�dSt�|dd�}z|�d	�d
kr�dSWd|��XWntk
�rYnXyt�|d�}Wntk
�r8dSX|�|�d�}WdQRX|dd�}t	|�dk�rrd
Syt
�d|�\}Wnt
jk
�r�d
SX|dk�r�dSyt
�d|dd��\}Wnt
jk
�r�d
SXd
S)Nz.pag�rbz.dirzdbm.ndbmz.dbz.datrzdbm.dumb�)�'�"��rz=l)iΚWi͚WiϚWzdbm.gnu���)
�ior�close�OSErrorr
�os�stat�st_size�read�len�struct�unpackr)�filename�f�d�sizeZs16�s�magicrrr	ras`

�__main__rZUNKNOWN)rr)�__all__r$r'r,�sys�	Exceptionrrrrr&Zdbmr
rrrr�argvr.�printrrrr	�<module>s$



,Y

?>