# HG changeset patch # User peterjc # Date 1495027383 14400 # Node ID 8e1a90917fa79ec6be8fbe8f7aa3e381e78b8909 # Parent a5602454b0ad0594f27ff048034f7587ebf140c8 v0.0.13 Python 3 compatible exception handling diff -r a5602454b0ad -r 8e1a90917fa7 tools/seq_select_by_id/README.rst --- a/tools/seq_select_by_id/README.rst Thu May 11 06:26:05 2017 -0400 +++ b/tools/seq_select_by_id/README.rst Wed May 17 09:23:03 2017 -0400 @@ -89,6 +89,7 @@ - Use ```` (internal change only). - Depends on Biopython 1.67 via legacy Tool Shed package or bioconda. - Python 3 compatible print function. +v0.0.13 - Python 3 compatible exception handling. ======= ====================================================================== diff -r a5602454b0ad -r 8e1a90917fa7 tools/seq_select_by_id/seq_select_by_id.py --- a/tools/seq_select_by_id/seq_select_by_id.py Thu May 11 06:26:05 2017 -0400 +++ b/tools/seq_select_by_id/seq_select_by_id.py Wed May 17 09:23:03 2017 -0400 @@ -26,7 +26,7 @@ import sys if "-v" in sys.argv or "--version" in sys.argv: - print("v0.0.12") + print("v0.0.13") sys.exit(0) # Parse Command Line @@ -118,12 +118,12 @@ iterator = (records[name] for name in parse_ids(tabular_file, column)) try: count = writer.write_file(iterator) - except KeyError, err: + except KeyError: out_handle.close() if name not in records: sys.exit("Identifier %r not found in sequence file" % name) else: - raise err + raise out_handle.close() else: # Avoid overhead of parsing into SeqRecord objects, diff -r a5602454b0ad -r 8e1a90917fa7 tools/seq_select_by_id/seq_select_by_id.xml --- a/tools/seq_select_by_id/seq_select_by_id.xml Thu May 11 06:26:05 2017 -0400 +++ b/tools/seq_select_by_id/seq_select_by_id.xml Wed May 17 09:23:03 2017 -0400 @@ -1,4 +1,4 @@ - + from a tabular file biopython diff -r a5602454b0ad -r 8e1a90917fa7 tools/seq_select_by_id/tool_dependencies.xml --- a/tools/seq_select_by_id/tool_dependencies.xml Thu May 11 06:26:05 2017 -0400 +++ b/tools/seq_select_by_id/tool_dependencies.xml Wed May 17 09:23:03 2017 -0400 @@ -1,6 +1,6 @@ - +