def get_log_content(logfile):
 f = open(logfile)
 content = f.read()
 f.close()
 os.remove(logfile)
 return content

def get_log_content ( logfile ) : f = open ( logfile ) content = f . read ( ) f . close ( ) os . remove ( logfile ) return content
prefix = tempfile is: if not stdout .