def extended_linecache_checkcache(filename=None, orig_checkcache=linecache.checkcache):
 cache = linecache.cache
 save = {}
 for filename in cache.keys():
  if ((filename[:1] + filename[(-1):]) == '<>'):
   save[filename] = cache[filename]
 orig_checkcache()
 cache.update(save)

def extended_linecache_checkcache ( filename = None , orig_checkcache = linecache . checkcache ) : cache = linecache . cache save = { } for filename in cache . keys ( ) : if ( ( filename [ : 1 ] + filename [ ( - 1 ) : ] ) == '<>' ) : save [ filename ] = cache [ filename ] orig_checkcache ( ) cache . update ( save )
extend linecache .