def getlines(filename, module_globals=None):
if filename in cache:<EOL><INDENT>return cache[filename][<NUM_LIT:2>]<EOL><DEDENT>try:<EOL><INDENT>return updatecache(filename, module_globals)<EOL><DEDENT>except MemoryError:<EOL><INDENT>clearcache()<EOL>return []<EOL><DEDENT>
Get the lines for a file from the cache.
    Update the cache if it doesn't contain an entry for this file already.