comparison blast2html.py @ 109:ea3bc0b9a3d9

fix (again) output encoding
author Jan Kanis <jan.code@jankanis.nl>
date Tue, 08 Jul 2014 17:51:22 +0200
parents ee2b105d772a
children e17aae23cc1c
comparison
equal deleted inserted replaced
108:1faac255ae3c 109:ea3bc0b9a3d9
467 # for i in iter: 467 # for i in iter:
468 # self.write(i) 468 # self.write(i)
469 # args.output.writelines = fixed_writelines 469 # args.output.writelines = fixed_writelines
470 470
471 args.output.close() 471 args.output.close()
472 args.output = io.open(args.output.name, 'w') 472 args.output = io.open(args.output.name, 'w', encoding='utf-8')
473 473
474 templatedir, templatename = path.split(args.template.name) 474 templatedir, templatename = path.split(args.template.name)
475 args.template.close() 475 args.template.close()
476 if not templatedir: 476 if not templatedir:
477 templatedir = '.' 477 templatedir = '.'