-í
čś<c       s   d  Z  d k Z d   Z d S(   s0   Guess which db package to use to open a db file.Nc    s.  d k  } yP t |  t i d d  } | i   t |  t i d d  } | i   d SWn t j
 o n Xyx t |  t i d d  } | i   t |  t i 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 | i d |  \ } Wn | i j
 o d Sn X| d j o d Sn | d d f j o d Sn y | i d | d  \ } Wn | 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.
    Ns   pags   rbs   dirs   dbms   dati   s   's   "s   dumbdbmi   i    i   s    s   =liÎWs   gdbmia i as   dbhashiü˙˙˙(   s   structs   opens   filenames   oss   extseps   fs   closes   IOErrors   reads   Nones   s16s   ss   lens   unpacks   magics   error(   s   filenames   magics   structs   fs   s16s   s(    (    s   /usr/lib/python2.2/whichdb.pys   whichdb sZ     	


 	
		(   s   __doc__s   oss   whichdb(   s   whichdbs   os(    (    s   /usr/lib/python2.2/whichdb.pys   ? s   	