™N
ÿùO5c       s%     d  Z    k Z  d „  Z d S(   s0   Guess which db package to use to open a db file.c    sr     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 ƒ  ' t | ƒ d j o ( d Sn + y , t	 i
 d | ƒ \ } Wn  - t	 i j
 o . d Sn X1 | d j o 2 d	 Sn 5 | d
 j o 6 d Sn 9 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   s    s   =liÎšWs   gdbmia s   dbhashN(   s   opens   filenames   fs   closes   IOErrors   Nones   reads   ss   lens   structs   unpacks   magics   error(   s   filenames   fs   ss   magics1   /var/tmp/python-root/usr/lib/python1.5/whichdb.pys   whichdb s4   N(   s   __doc__s   structs   whichdb(    s1   /var/tmp/python-root/usr/lib/python1.5/whichdb.pys   ? s   	