Ζ
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     yQ  t  |  d d  }  | i    t  |  d d  }  | i    d SWn  t j
 o
  n X y  t  |  d d  }  | i     t  |  d d  } ! z. " | i d  d d g j o # d	 Sn Wd
 $ % | i   XWn & t j
 o
 ' n X* y + t  |  d  } Wn , t j
 o - t Sn X0 | i d  } 1 | i   2 | d d !} 5 t	 |  d j o 6 d Sn 9 y : t
 i d |  \ } Wn  ; t
 i j
 o < d Sn X? | d j o @ d Sn C | d d f j o D d Sn G y! H t
 i d | d  \ } Wn  I t
 i j
 o J d Sn XM | d d f j o N d Sn Q 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   