;ň
óü?c           @   sf   d  Z  d k Z d k Z d k Z y d k Z e i Z Wn e j
 o e Z e	 Z n Xd   Z
 d S(   s0   Guess which db package to use to open a db file.Nc         C   sč  yu t  |  t i d d  } | i   t i d j o t i	 d j o( t  |  t i d d  } | i   n d SWn t
 j
 oy yV t  |  t i d d  } | i   t t j	 o! t i  |   } | i   d Sn Wqý t
 t f j
 o qý Xn Xy t i |  t i d  t i |  t i d  i } | d	 j o d
 Sn t  |  t i d d  } z( | i d  d d g j o d
 Sn Wd | i   XWn t t
 f 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 t i d |  \ } Wn t i j
 o d Sn X| d j o d Sn | d d f j o d Sn y t i d | d  \ } Wn t 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.
    s   pags   rbs   GNU gdbms   os2emxs   dirs   dbms   dbs   dati    s   dumbdbmi   s   's   "Ni   i   s    s   =liÎWs   gdbmia i as   bsddb185iü˙˙˙s   dbhash(   s   opens   filenames   oss   extseps   fs   closes   dbms   librarys   syss   platforms   IOErrors   Nones   ds	   _dbmerrors   stats   st_sizes   sizes   reads   OSErrors   s16s   ss   lens   structs   unpacks   magics   error(   s   filenames   magics   ds   fs   s16s   ss   size(    (    s$   /mit/python/lib/python2.3/whichdb.pys   whichdb   sn     
!


 	
		(   s   __doc__s   oss   structs   syss   dbms   errors	   _dbmerrors   ImportErrors   Nones   IOErrors   whichdb(   s   dbms   structs   syss   whichdbs	   _dbmerrors   os(    (    s$   /mit/python/lib/python2.3/whichdb.pys   ?   s   				