-í
čś<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  }  y_  t |  t i d d  }  | i    t |  t i d d  }  | i    d SWn  t j
 o
  n X y   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 X, y - t |  d  } Wn . t j
 o / t	 Sn X2 | i d  } 3 | i   4 | d d !} 7 t |  d j o 8 d Sn ; y < | i d |  \ } Wn  = | i j
 o > d Sn XA | d j o B d Sn E | d d f j o F d Sn I y  J | i d | d  \ } Wn  K | i j
 o L d Sn XO | d d f j o P d Sn S 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   