ó "9QRc@spdZddlZddlZdddgZdd„Ziad„Zdd„Zdd „Z dd „Z dS( sľCache lines from files. This is intended to read lines from modules imported -- hence if a filename is not found, it will look down the module search path for a file by that name. i˙˙˙˙Ntgetlinet clearcachet checkcachecCsEt||ƒ}d|ko,t|ƒknr=||dSdSdS(Nit(tgetlinestlen(tfilenametlinenotmodule_globalstlines((sJ/opt/poky/1.5/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/linecache.pyR s" cCs iadS(sClear the cache entirely.N(tcache(((sJ/opt/poky/1.5/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/linecache.pyRscCs)|tkrt|dSt||ƒSdS(ssGet the lines for a file from the cache. Update the cache if it doesn't contain an entry for this file already.iN(R t updatecache(RR((sJ/opt/poky/1.5/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/linecache.pyR!s  cCsĐ|dkrtjƒ}n|tkr3|g}ndSx’|D]Š}t|\}}}}|dkrlq>nytj|ƒ}Wntjk rŸt|=q>nX||jksž||jkr>t|=q>q>WdS(sUDiscard cache entries that are out of date. (This is not checked upon each call!)N(tNoneR tkeystoststatterrortst_sizetst_mtime(Rt filenamestsizetmtimeR tfullnameR((sJ/opt/poky/1.5/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/linecache.pyR+s      c Csf|tkrt|=n| s;|jdƒr?|jdƒr?gS|}ytj|ƒ}Wnttk rÎ|}|r<d|kr<|jdƒ}|d}t|dd ƒ}|r<|r<y||ƒ}Wnt t fk rŕq9X|d krńgSt |ƒd g|j ƒD]} | d^q |ft|t __loader__t__name__t get_sources itrUNi˙˙˙˙(R t startswithtendswithRRtOSErrortgettgetattrR t ImportErrortIOErrorRt splitlinestpathtisabstsystjoint TypeErrortAttributeErrorRtopent readlinesRR(RRRRtbasenametnametloaderRtdatatlinetdirnametfpR RR((sJ/opt/poky/1.5/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/linecache.pyR Ds\  %     - ( t__doc__R'Rt__all__R RR RRRR (((sJ/opt/poky/1.5/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/linecache.pyts