# HG changeset patch # User greg # Date 1488218425 18000 # Node ID a2a3593a42d4150b785b7e222c4720a252f27f07 # Parent 8abf3c06e7e1d9194e215dac6dfc9671f71501c7 Uploaded diff -r 8abf3c06e7e1 -r a2a3593a42d4 gene_family_classifier.py --- a/gene_family_classifier.py Mon Feb 27 12:52:58 2017 -0500 +++ b/gene_family_classifier.py Mon Feb 27 13:00:25 2017 -0500 @@ -84,12 +84,11 @@ def write_html_output(output, title, dir): - fh = open(output, 'wb') - fh.write('%s

') - fh.close() + with open(output, 'wb') as fh: + fh.write('%s

\n') # Define command response buffers.