diff ecitmatch.py @ 1:0fc65a60436f 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:08:30 -0400
parents 71bcf87a7031
children c09fcbe4b16a
line wrap: on
line diff
--- a/ecitmatch.py	Thu Jul 07 02:39:36 2016 -0400
+++ b/ecitmatch.py	Tue Oct 30 19:08:30 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'))