
    ;e                         	 g d Z ddlZddlZddlZddlZ G d de          Zg dZdai Z	ee
fZ	 ddlmZ n# e$ r dZY nw xY wdd	Zd
 Zedk    r)ej        dd         D ]Z e ee          pde           dS dS ))openwhichdberror    Nc                       e Zd ZdS )r   N)__name__
__module____qualname__     #/usr/lib/python3.11/dbm/__init__.pyr   r   &   s        Dr   r   )dbm.gnudbm.ndbmdbm.dumb)ndbmr  c                 (   	 t           _t          D ]9}	 t          |dg          }n# t          $ r Y "w xY wt           s|a |t          |<   :t           st          dt          z            d|vrt          |           nd }|%d|v sd|v rt           }nnt          d         d          |dk    rt          d         d	          |t          vr(t          d         d
                    |                    t          |         }|                    | ||          S )Nr   )fromlistzno dbm clone found; tried %sncr   z=db file doesn't exist; use 'c' or 'n' flag to create a new db zdb type could not be determinedz/db type is {0}, but the module is not available)	_defaultmod_names
__import__ImportError_modulesr   r   formatr   )fileflagmodenamemodresults         r   r   r   5   sR   	  	! 	!D 999    "! HTNN 	G<vEFFF "ooWT]]]4F~$;;#++CC( D E E E	2Ah8999	x		Ah ##)6&>>3 3 	3 v88D$%%%s   &
33c                 0   	 t          j        |           } 	 t          j        | dz   d          }|                                 t          j        | dz   d          }|                                 dS # t
          $ rs 	 t          j        | dz   d          }|                                 t          +t          j        |           }|                                 Y dS n# t
          $ r Y nw xY wY nw xY w	 t          j        | dz              t          j        | dz             j        }|dk    rdS t          j        | dz   d          }	 |	                    d	          d
v r	 |                                 dS 	 |                                 n# |                                 w xY wn# t
          $ r Y nw xY w	 t          j        | d          }n# t
          $ r Y d S w xY w|5  |	                    d          }d d d            n# 1 swxY w Y   |dd         }t          |          dk    rdS 	 t          j        d|          \  }n# t          j        $ r Y dS w xY w|dv rdS 	 t          j        d|dd                    \  }n# t          j        $ r Y dS w xY wdS )Ns   .pagrbs   .dirr   s   .dbs   .datr   r      )   '   "      r   z=l)iΚWi͚WiϚWr   )osfsencodeior   closeOSErrorr   statst_sizereadlenstructunpackr   )filenamefdsizes16smagics          r   r   r   b   s5   
 {8$$HGHw&--				GHw&--				z   	6)400AGGIII Ih''			!zz    	 	 	D	"
7"###wx')**2199:GHw&--	vvayyL((!GGIIIII ) GGIIIIAGGIIIII   GHd##   tt 
  ffRjj               	AaCA 1vv{{r=q))<   rr 444y=s233x00<   rr 2s   AA1 1
C.<ACC.
C(%C.'C((C.-C.29F$ -F$ F
 F$ 5F$ 
F  F$ $
F10F15G 
GGH  HH+I II J   JJ__main__r&   UNKNOWN)r   r   )__all__r.   r,   r5   sys	Exceptionr   r   r   r   r0   dbmr   r   r   r   r   argvr7   printr
   r   r   <module>rF      sH  : '
&
& 				 				  



	 	 	 	 	I 	 	 	 
-	,	,	   DDD*& *& *& *&ZW W Wt zHQRRL 8 8ggh,9h7777 8 8s   8 AA