def filter_eliot_main(args, base_path, top_level, stdin=None, stdout=None):
 stdin = (sys.stdin if (stdin is None) else stdin)
 stdout = (sys.stdout if (stdout is None) else stdout)
 if args:
  lines = chain_files(args)
 else:
  lines = stdin
 for line in lines:
  for output in process_line(line):
   stdout.write(output)

def filter_eliot_main ( args , base_path , top_level , stdin = None , stdout = None ) : stdin = ( sys . stdin if ( stdin is None ) else stdin ) stdout = ( sys . stdout if ( stdout is None ) else stdout ) if args : lines = chain_files ( args ) else : lines = stdin for line in lines : for output in process_line ( line ) : stdout . write ( output )
filter logs .