ACC SHELL

Path : /usr/lib/python/
File Upload :
Current File : //usr/lib/python/linecache.pyo

Ńň
oÄMc@spdZddkZddkZdddgZdd„Zhad„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
checkcachecCsHt||ƒ}d|jot|ƒjno
||dSdSdS(Nit(tgetlinestlen(tfilenametlinenotmodule_globalstlines((s/usr/lib/python2.6/linecache.pyR
s$
cCs
hadS(sClear the cache entirely.N(tcache(((s/usr/lib/python2.6/linecache.pyRscCs+|tjo
t|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
tupdatecache(RR((s/usr/lib/python2.6/linecache.pyR!s

cCsŰ|djotiƒ}n|tjo
|g}ndSx™|D]‘}t|\}}}}|djoqBnyti|ƒ}Wn tij
ot|=qBnX||ijp||ijot|=qBqBWdS(sUDiscard cache entries that are out of date.
    (This is not checked upon each call!)N(tNoneR
tkeystoststatterrortst_sizetst_mtime(Rt	filenamestsizetmtimeR	tfullnameR((s/usr/lib/python2.6/linecache.pyR+s"



 cCsY|tjot|=n|p|d|ddjogS|}yti|ƒ}Wntij
o}|}|oŮd|joĚ|idƒ}|d}t|dd
ƒ}|o–|oy||ƒ}	Wnttfj
oqOX|	d
jogSt	|	ƒd
g}
|	i
ƒD]}|
|dq~
|ft|<t|dSqSntii|ƒogSx|t
iD]h}ytii||ƒ}Wnttfj
oquXyti|ƒ}PWqutij
oquXquWgSnXy)t|d	ƒ}
|
iƒ}|
iƒWntj
o
}gSX|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<>t
__loader__t__name__t
get_sources
itrUN(R
RRRtgettgetattrRtImportErrortIOErrorRt
splitlinestpathtisabstsystjoint	TypeErrortAttributeErrortopent	readlinestcloseRR(RRRRtmsgtbasenametnametloaderRtdatat_[1]tlinetdirnametfpR	RR((s/usr/lib/python2.6/linecache.pyRDs\
!

5
		(t__doc__R"Rt__all__RRR
RRRR(((s/usr/lib/python2.6/linecache.pyt<module>s
	


ACC SHELL 2018