MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/2/cwd/usr/lib/python2.4/linecache.pyc
mò
‚=5Dc@sadZdkZdkZdddgZd„Zhad„Zd„Zdd„Z	d	„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.
Ntgetlinet
clearcachet
checkcachecCsHt|ƒ}d|jot|ƒjno||dSndSdS(Nit(tgetlinestfilenametlinestlinenotlen(RRR((t/usr/lib/python2.4/linecache.pyR
s$cCs
hadS(sClear the cache entirely.N(tcache(((R	RscCs+|tjot|dSnt|ƒ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(RR
tupdatecache(R((R	R!s
cCsÇ|djotiƒ}n|tjo
|g}ndSx…|D]}}t|\}}}}yt	i
|ƒ}Wn t	ij
ot|=qBnX||ijp||i
jot|=qBqBWdS(sUDiscard cache entries that are out of date.
    (This is not checked upon each call!)N(RtNoneR
tkeyst	filenamestsizetmtimeRtfullnametoststatterrortst_sizetst_mtime(RRRRRRR((R	R+s 


 c
Csw|tjot|=n|p|d|ddjogSn|}yti|ƒ}Wn¨tij
o™}tii|ƒd}x|t
iD]h}ytii||ƒ}Wnt
tfj
oqXyti|ƒ}PWqtij
oqXqWgSnXy)t|dƒ}|iƒ}|iƒWntj
o
}gSnX|i|i}	}|	|||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.ii˙˙˙˙s<>itrUN(RR
RRRRtmsgtpathtsplittbasenametsystdirnametjoint	TypeErrortAttributeErrortopentfpt	readlinesRtclosetIOErrorRRRR(
RR"RRRRRRRR((R	RBs>
!
			(t__doc__RRt__all__RR
RRRRR(RRR'RRRRR((R	t?s