tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
L\¬Qc@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((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/linecache.pyR s" cCs
iadS(sClear the cache entirely.N(tcache(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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|dSq<ntj j|ƒrRgSxztj D]g}
ytj j|
|ƒ}Wnttfk
r—q\nXytj|ƒ}PWq\tjk
rÂq\Xq\WgSnXy(t|dƒ} | jƒ} Wd    QXWnt
k
r gSX| r9| d
jdƒ 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ÿÿÿÿ(R
t
startswithtendswithRRtOSErrortgettgetattrR t ImportErrortIOErrorRt
splitlinestpathtisabstsystjoint    TypeErrortAttributeErrorRtopent    readlinesRR(RRRRtbasenametnametloaderRtdatatlinetdirnametfpR    RR((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/linecache.pyR Ds\ 
% 
   - ( t__doc__R'Rt__all__R RR
RRRR (((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/linecache.pyt<module>s