Module cllinecache
source code
cllinecache.py: Modify linecache so it works with translated CL
scripts too
CL scripts have special filename "<CL script
taskname>"
$Id: cllinecache.py 768 2006-09-06 19:18:01Z rij $
|
|
checkcache(filename=None,
orig_checkcache=linecache.checkcache)
Discard cache entries that are out of date. |
source code
|
|
|
|
updatecache(filename,
module_globals=None,
orig_updatecache=linecache.updatecache)
Update a cache entry and return its list of lines. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
_original_checkcache = linecache.checkcache
|
|
|
_original_updatecache = linecache.updatecache
|
Imports:
linecache,
string,
os,
sys,
S_IWRITE,
ST_MTIME,
S_IRGRP,
S_IFLNK,
ST_INO,
S_IXOTH,
ST_UID,
S_ISSOCK,
S_ISLNK,
S_IMODE,
S_IXUSR,
S_IRUSR,
ST_NLINK,
S_IFBLK,
S_IFDIR,
ST_ATIME,
S_ISFIFO,
S_ISUID,
S_IRWXU,
S_IFCHR,
S_ISGID,
S_IFREG,
S_ISREG,
S_IREAD,
S_IFIFO,
S_IFSOCK,
S_ISCHR,
S_ISVTX,
ST_MODE,
S_ISDIR,
S_ENFMT,
S_IEXEC,
ST_CTIME,
S_IWOTH,
S_IXGRP,
S_IRWXG,
S_IFMT,
S_IWUSR,
S_ISBLK,
ST_GID,
S_IROTH,
S_IWGRP,
S_IRWXO,
ST_DEV,
ST_SIZE,
iraf
checkcache(filename=None,
orig_checkcache=linecache.checkcache)
| source code
|
Discard cache entries that are out of date. (This is not checked upon
each call!)
|
updatecache(filename,
module_globals=None,
orig_updatecache=linecache.updatecache)
| source code
|
Update a cache entry and return its list of lines. If something's
wrong, discard the cache entry and return an empty list.
|