(filename, module_globals=None)
Get the lines for a file from the cache.
    Update the cache if it doesn't contain an entry for this file already.
Get the lines for a file from the cache.
    Update the cache if it doesn't contain an entry for this file already.
Get the lines for a file from the cache . Update the cache if it doesn t contain an entry for this file already .
def getlines(filename, module_globals=None):
    """Get the lines for a file from the cache.
    Update the cache if it doesn't contain an entry for this file already."""

    if filename in cache:
        return cache[filename][2]
    else:
        return updatecache(filename, module_globals)
def getlines ( filename , module_globals = None ) : if filename in cache : return cache [ filename ] [ 2 ] else : return updatecache ( filename , module_globals )