mò %U²Ic@s¥dZdkZdkZdkZydkZeiZWnej odZe ZnXd„Z e djo2x/ei dD]Z e e ƒpdGe GHq}WndS(s0Guess which db package to use to open a db file.NcCs×ytt|tiddƒ}|iƒtidjo ti djp(t|tiddƒ}|iƒndSWn…t j oyyVt|tiddƒ}|iƒtdj o!ti|ƒ}|iƒdSnWqüt t fj oqüXnXyžti|tidƒti|tidƒi}|d jod Snt|tiddƒ}z(|id ƒd d gjod SnWd|iƒXWntt fj onXyt|dƒ}Wnt j o dSnX|idƒ}|iƒ|d d!}t|ƒdjodSnytid|ƒ\}Wntij o dSnX|djodSn|djodSnytid|dƒ\}Wntij o dSnX|djodSndS(sgGuess 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. tpagtrbsGNU gdbmtos2emxtdirtdbmtdbtdatitdumbdbmit't"Niits=liΚWtgdbmiaiatbsddb185iüÿÿÿtdbhash(iaia(iaia(topentfilenametostextseptftcloseRtlibrarytsystplatformtIOErrortNonetdt _dbmerrortstattst_sizetsizetreadtOSErrorts16tstlentstructtunpacktmagicterror(RR%RRR R!R((t$/data/zmath/lib/python2.4/whichdb.pytwhichdbsn                  t__main__itUNKNOWN(t__doc__RR#RRR&Rt ImportErrorRRR(t__name__targvR(RR#RRR(RR((R't?s       b