| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/26998/root/usr/lib/python2.6/ |
Upload File : |
Ńň
ČÉJc @ sp d Z d d k Z d d k Z d d d g Z d d Z h a d Z d d Z d d Z d d
Z
d S( 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˙˙˙˙Nt getlinet
clearcachet
checkcachec C sH t | | } d | j o t | j n o
| | d Sd Sd S( Ni t ( t getlinest len( t filenamet linenot module_globalst lines( ( s /usr/lib/python2.6/linecache.pyR
s $
c C s
h a d S( s Clear the cache entirely.N( t cache( ( ( s /usr/lib/python2.6/linecache.pyR s c C s+ | t j o
t | d St | | Sd S( ss Get the lines for a file from the cache.
Update the cache if it doesn't contain an entry for this file already.i N( R
t updatecache( R R ( ( s /usr/lib/python2.6/linecache.pyR ! s
c C sŰ | d j o t i } n | t j o
| g } n d Sx | D] } t | \ } } } } | d j o qB n y t i | } Wn t i j
o t | =qB n X| | i j p | | i j o t | =qB qB Wd S( sU Discard cache entries that are out of date.
(This is not checked upon each call!)N( t NoneR
t keyst ost statt errort st_sizet st_mtime( R t filenamest sizet mtimeR t fullnameR ( ( s /usr/lib/python2.6/linecache.pyR + s"