N
νu¦9c       s%     d  Z    k Z  d   Z d S(   s0   Guess which db package to use to open a db file.c    sπ     yQ  t  |  d d  }  | i    t  |  d d  }  | i    d SWn  t j
 o
  n X y  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2 | d
 j o 3 d Sn 6 | d d f j o 7 d Sn : y! ; t
 i d	 | d  \ } Wn  < t
 i j
 o = d Sn X@ | d d f j o A d Sn D 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   dbmi   i    i   s    s   =liΞWs   gdbmia i as   dbhashN(   s   opens   filenames   fs   closes   IOErrors   Nones   reads   s16s   ss   lens   structs   unpacks   magics   error(   s   filenames   fs   s16s   ss   magics+   /usr/lib/python1.5/site-packages/whichdb.pys   whichdb sB   !N(   s   __doc__s   structs   whichdb(    s+   /usr/lib/python1.5/site-packages/whichdb.pys   ? s   	