Ζ
Nφ9c       s   d  Z  d k Z d   Z d S(   s0   Guess which db package to use to open a db file.Nc    s
  yB t  |  d d  } | i   t  |  d d  } | i   d SWn t j
 o n Xyj t  |  d d  } | i   t  |  d d  } z( | i d  d d g j o d	 Sn Wd
 | i   XWn t j
 o n Xy t  |  d  } Wn t j
 o t Sn X| i d  } | i   | d d !} t	 |  d j o d Sn y t
 i d |  \ } Wn t
 i j
 o d Sn X| d j o d Sn | d d f j o d Sn y t
 i d | d  \ } Wn t
 i j
 o d Sn X| d d f j o d Sn d Sd
 S(   sg  Guess which db package to use to open a db file.

    Return values:

    - None if the database file can't be read;
    - empty string if the file can be read but can't be recognized
    - the module name (e.g. "dbm" or "gdbm") if recognized.

    Importing the given module may still fail, and opening the
    database using that module may still fail.
    s   .pags   rbs   .dirs   dbms   .dati   s   's   "s   dumbdbmNi   i    i   s    s   =liΞWs   gdbmia i as   dbhash(   s   opens   filenames   fs   closes   IOErrors   reads   Nones   s16s   ss   lens   structs   unpacks   magics   error(   s   filenames   fs   s16s   ss   magics$   /mit/python/lib/python2.0/whichdb.pys   whichdb sX     


 	
		(   s   __doc__s   structs   whichdb(    s$   /mit/python/lib/python2.0/whichdb.pys   ? s   	