ó âqLc@s ddlZddlZddlZddlZddlZddlZdZdad„Z ye Wne k rd„Z n Xd„Z ye dƒWne k rµd„Z nXdZ d Zd efd „ƒYZdd d „Zd„ZedkreƒndS(iÿÿÿÿNicCs dG|GHdS(Ns%Warning: Discarding corrupt database:((tfilename((s\/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/dblite.pytcorruption_warningscCs t|tƒS(N(t isinstancetstr(ts((s\/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/dblite.pyt is_stringscCst|ƒttfkS(N(ttypeRtunicode(R((s\/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/dblite.pyRstacCs|S(N((R((s\/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/dblite.pyRss.dblites.tmptdblitecBsÝeZejZeejƒZe j Z y e j Z Wnek rMd Z nXe jZe jZejZejZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d „Z"e"Z#d „Z$RS( c Cs{|d kst‚|dkr'd}ntjj|ƒ\}}|tkrd||_|t|_n|t|_|t|_||_ ||_ i|_ d|_ |j dk rXtjƒdksÕtjƒdkrXy.tj|jƒ}|j|_|j|_Wqjtk rT}ttjjddƒƒ|_ttjjddƒƒ|_qjXnd|_d|_|j dkr•|j|jd |j ƒnây|j|jd ƒ}WnDtk rô}|j dkrØ|‚n|j|jd |j ƒnƒX|jƒ} t| ƒdkrwytj| ƒ|_ Wqwtjt fk rst!dkrT‚nt!d krtt"|jƒqtqwXndS( NtrtwtctnitSUDO_UIDiÿÿÿÿtSUDO_GIDtwbtrbi(NR R R R (#tNonetAssertionErrortostpathtsplitextt dblite_suffixt _file_namet tmp_suffixt _tmp_namet_flagt_modet_dictt _needs_synct _os_chowntgeteuidtgetuidtstattst_uidt _chown_totst_gidt _chgrp_totOSErrortinttenvirontgett_opentIOErrortreadtlentpickletloadstUnpicklingErrortEOFErrortignore_corrupt_dbfilesR( tselftfile_base_nametflagtmodetbasetexttstatinfotetftp((s\/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/dblite.pyt__init__;sP         3 %      cCs|jr|jƒndS(N(Rtsync(R4((s\/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/dblite.pyt__del__ks cCs1|jƒ|j|jd|jƒ}|j|j|dƒ|jƒy|j|jdƒWnt k ronX|j |jƒ|j |j|jƒ|j dk rë|jdkrëy |j |j|j|jƒWqët k rçqëXnd|_tr-|j|j|jdtt|jƒƒƒƒndS(NRiiÿit_(t_check_writableR+RRt _pickle_dumpRtcloset _os_chmodRR't _os_unlinkt _os_renameRRR$R&Rtkeep_all_filest_shutil_copyfileRR(t _time_time(R4R<((s\/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/dblite.pyR?os(      cCs)|jdkr%td|jƒ‚ndS(NR sRead-only database: %s(RR,R(R4((s\/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/dblite.pyRB‰scCs |j|S(N(R(R4tkey((s\/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/dblite.pyt __getitem__scCsz|jƒt|ƒs5td|t|ƒfƒ‚nt|ƒs`td|t|ƒfƒ‚n||j|R@R?RBRLRORQRRRSRTt__iter__RU(((s\/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/dblite.pyR #s.          0        i¶cCst|||ƒS(N(R (tfileR6R7((s\/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/dblite.pyRY«scCsQtddƒ}t|ƒdks't‚d|d<|ddksGt‚tdƒ|tdƒ<|tdƒtdƒkst‚|jƒtddƒ}t|ƒd ks¹tt|ƒ‚|ddksÏt‚d|d<|ddksït‚tdƒ|tdƒ<|tdƒtdƒks't‚|jƒtdd ƒ}t|ƒd ksatt|ƒ‚|ddkswt‚|ddkst‚|tdƒtdƒks¯t‚|tdƒtdƒksÑt‚y|jƒWn+tk r }t|ƒd kst‚n Xtd ƒ‚tddƒ}t|ƒd ks@t‚d|d<|jƒyd|dsTypeError exception expectedRPs4value `[1, 2]' must be a string but is is tmp.dblitetxspickle exception expected.s1[Errno 2] No such file or directory: 'tmp.dblite'tOK(ii(RYR.RRR?R,Rt RuntimeErrorRMR R+twriteR/R1R3RR`(tdbR;((s\/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/dblite.pyt _exercise®s| " ! " !""   % %   % t__main__(t SCons.compattSConsRXRR/RaRcRHR3RRt NameErrorRRRtobjectR RRYRsRV(((s\/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/dblite.pyts0            ˆ F