diff ecitmatch.py @ 1:28f69754ddc5 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:09:05 -0400
parents 9d18e6815994
children d1789b4821fc
line wrap: on
line diff
--- a/ecitmatch.py	Thu Jul 07 02:39:52 2016 -0400
+++ b/ecitmatch.py	Tue Oct 30 19:09:05 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'))