def getlines(filename, module_globals=None):
 if (filename in cache):
  return cache[filename][2]
 try:
  return updatecache(filename, module_globals)
 except MemoryError:
  clearcache()
  return []

def getlines ( filename , module_globals = None ) : if ( filename in cache ) : return cache [ filename ] [ 2 ] try : return updatecache ( filename , module_globals ) except MemoryError : clearcache ( ) return [ ]
deprecated since ipython 6 .