Mercurial > repos > peterjc > blastxml_to_top_descr
changeset 19:a89d62b8a239 draft
planemo upload for repository https://github.com/peterjc/galaxy_blast/tree/master/tools/blastxml_to_top_descr commit b09e12603b1264688a023dd5111c946c01af9e59-dirty
author | peterjc |
---|---|
date | Fri, 19 May 2017 06:04:24 -0400 |
parents | 5737e2e7179a |
children | c0c0a615d7cc |
files | tools/blastxml_to_top_descr/README.rst tools/blastxml_to_top_descr/blastxml_to_top_descr.py |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/blastxml_to_top_descr/README.rst Thu May 18 12:44:22 2017 -0400 +++ b/tools/blastxml_to_top_descr/README.rst Fri May 19 06:04:24 2017 -0400 @@ -75,6 +75,7 @@ - Planemo for Tool Shed upload (``.shed.yml``, internal change only). - Use ``<command detect_errors="aggressive">`` (internal change only). - Single quote command line arguments (internal change only). + - Python 3 compatible syntax. ======= ======================================================================
--- a/tools/blastxml_to_top_descr/blastxml_to_top_descr.py Thu May 18 12:44:22 2017 -0400 +++ b/tools/blastxml_to_top_descr/blastxml_to_top_descr.py Fri May 19 06:04:24 2017 -0400 @@ -7,6 +7,8 @@ Assumes the hits are pre-sorted, so "best" 3 hits gives first 3 hits. """ +from __future__ import print_function + import os import re import sys @@ -14,7 +16,7 @@ from optparse import OptionParser if "-v" in sys.argv or "--version" in sys.argv: - print "v0.1.1" + print("v0.1.2") sys.exit(0) if sys.version_info[:2] >= (2, 5):