comparison refinery_test_tool.py @ 3:f725e3820fb4 draft

Add 2-1 and 2-2 tools. Code cleanup.
author hackdna
date Fri, 10 May 2013 17:07:41 -0400
parents 417f332cf4ef
children a410fb6c43fa
comparison
equal deleted inserted replaced
2:fb14f26733e1 3:f725e3820fb4
27 quit("Processing failed by request", args) 27 quit("Processing failed by request", args)
28 28
29 input = read_files(args.input_files) 29 input = read_files(args.input_files)
30 try: 30 try:
31 for out_file in args.output_files: 31 for out_file in args.output_files:
32 out_file.write('\n' + "Output file name: " + out_file.name + '\n') 32 out_file.write("Output file name: " + out_file.name + '\n\n')
33 out_file.write(input) 33 out_file.write(input)
34 except IOError as e: 34 except IOError as e:
35 cleanup(args) 35 cleanup(args)
36 parser.error(e) 36 parser.error(e)
37 else: 37 else: