Files
PowerToys/PythonEnv/2.7/Lib/linecache.pyc

42 lines
3.4 KiB
Plaintext
Raw Normal View History

2013-12-21 01:22:42 +08:00
<03>
<EFBFBD><EFBFBD>uMc@spdZddlZddlZdddgZdd<00>Ziad<00>Zdd<00>Zdd <00>Z dd
<00>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<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ntgetlinet
clearcachet
checkcachecCsEt||<00>}d|ko,t|<00>knr=||dSdSdS(Nit(tgetlinestlen(tfilenametlinenotmodule_globalstlines((sFd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\linecache.pyR s" cCs
iadS(sClear the cache entirely.N(tcache(((sFd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\linecache.pyRscCs)|tkrt|dSt||<00>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((sFd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\linecache.pyR!s  cCs<>|dkrtj<00>}n|tkr3|g}ndSx<53>|D]<5D>}t|\}}}}|dkrlq>nytj|<00>}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((sFd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\linecache.pyR+s      c Csf|tkrt|=n| s;|jd<00>r?|jd<00>r?gS|}ytj|<00>}Wnttk
r<>|}|r<d|kr<|jd<00>}|d}t|dd <00>}|r<|r<y||<00>}Wnt t
fk
r<>q9X|d kr<>gSt |<00>d g|j <00>D]} | d^q
|ft|<t|dSq<ntj j|<00>rRgSxztj D]g}
ytj j|
|<00>}Wnttfk
r<>q\nXytj|<00>}PWq\tjk
r<>q\Xq\WgSnXy(t|d<00><00>} | j<00>} Wd QXWnt
k
r gSX| r9| d
jd<00> r9| d
cd7<n|j|j} }| || |ft|<| S( s<>Update a cache entry and return its list of lines.
If something's wrong, print a message, discard the cache entry,
and return an empty list.t<t>t
__loader__t__name__t
get_sources
itrUNi<4E><69><EFBFBD><EFBFBD>(R
t
startswithtendswithRRtOSErrortgettgetattrR t ImportErrortIOErrorRt
splitlinestpathtisabstsystjoint TypeErrortAttributeErrorRtopent readlinesRR(RRRRtbasenametnametloaderRtdatatlinetdirnametfpR RR((sFd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\linecache.pyR Ds\ 
% 
   - ( t__doc__R'Rt__all__R RR
RRRR (((sFd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\linecache.pyt<module>s