mò ©ËŽGc@s>dkTdkTdefd„ƒYZdefd„ƒYZdS((t*tDBcBsYtZdZdZdZd„Zd„Zd„Zd„Zd„Z d„Z d „Z RS( NtdatabasetDatabasecCs ||_dS(N(tfilenametselft _filename(RR((t\/home/faculty/youssef/public_html/pacman/sample_cache/tarballs/pre/tmp/pacman-3.29/src/DB.pyt__init__ scCs|i|ijS(N(RRtx(RR ((RtequalscCs|iS(N(RR(R((RtstrscCs,td| dtiit|iƒƒ ƒS(Ns Data base [s] does not exist.(tReasonRtostpathtexiststfullpathR(R((Rt satisfiedscCstƒS(N(R (R((Rt satisfiablescCsjtƒ}t|iƒ|_tdƒytiƒWn0tt fj otd|idƒ}nX|S(Nterrors Can't write [s].( R treasonRRRtaborttdbtclosetIOErrortOSError(RR((Rtacquires  cCst|iƒtƒS(N(t removeFileRRR (R((Rtretract"s ( t__name__t __module__ttypetactionttitleRR R RRRR(((RRs      tDictcBs#tZdZdZdZd„ZRS(Nt dictionaryt DictionarycCsˆtƒ}t|iƒ|_y6h}t|idƒ}ti ||ƒ|i ƒWn0t t fj otd|idƒ}nX|S(NtwsError writing [s].( R RRRRtdtopentftcPickletdumpRRR(RR&R(R((RR+s (RRRR R!R(((RR"&sN(tBaset EnvironmentRR"(R"R((Rt?s