-í
”‚É<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/local/twc/lib/python2.2/whichdb.pys   whichdb sZ     	


 	
		(   s   __doc__s   oss   whichdb(   s   whichdbs   os(    (    s'   /usr/local/twc/lib/python2.2/whichdb.pys   ? s   	