Mercurial > repos > iuc > ncbi_eutils_elink
diff ecitmatch.py @ 1:2791c731fc65 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit a4b0969b33a68a0ea9ba12291f6694aec24f13ed
author | iuc |
---|---|
date | Tue, 30 Oct 2018 19:07:34 -0400 |
parents | 59063d2e91c6 |
children | 55b3067762f9 |
line wrap: on
line diff
--- a/ecitmatch.py Thu Jul 07 02:40:20 2016 -0400 +++ b/ecitmatch.py Tue Oct 30 19:07:34 2018 -0400 @@ -1,5 +1,8 @@ #!/usr/bin/env python +from __future__ import print_function + import argparse + import eutils @@ -48,7 +51,7 @@ 'key': tmp[5], }) except KeyError: - print "Could not parse line: %s" % line + print("Could not parse line: %s" % line) payload = { 'db': 'pubmed', @@ -57,4 +60,4 @@ results = c.citmatch(**payload) # We get data back as pipe separated, so just replace those with tabs - print results.replace('|', '\t') + print(results.replace('|', '\t'))