diff data_manager/bowtie_index_builder.py @ 4:86e9af693a33 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_bowtie_index_builder commit 67d76bc24ec6a5eb145f05416dc2098999897bae
author iuc
date Fri, 09 Jun 2017 06:12:02 -0400
parents ea5faedd0795
children 08a3583826fa
line wrap: on
line diff
--- a/data_manager/bowtie_index_builder.py	Tue Apr 04 18:06:27 2017 -0400
+++ b/data_manager/bowtie_index_builder.py	Fri Jun 09 06:12:02 2017 -0400
@@ -1,4 +1,6 @@
 #!/usr/bin/env python
+from __future__ import print_function
+
 import json
 import optparse
 import os
@@ -42,7 +44,7 @@
     if return_code:
         tmp_stderr.flush()
         tmp_stderr.seek(0)
-        print >> sys.stderr, "Error building index:"
+        print("Error building index:", file=sys.stderr)
         while True:
             chunk = tmp_stderr.read( CHUNK_SIZE )
             if not chunk:
@@ -62,7 +64,6 @@
 
 
 def main():
-    # Parse Command Line
     parser = optparse.OptionParser()
     parser.add_option( '-f', '--fasta_filename', dest='fasta_filename', action='store', type="string", default=None, help='fasta_filename' )
     parser.add_option( '-d', '--fasta_dbkey', dest='fasta_dbkey', action='store', type="string", default=None, help='fasta_dbkey' )