diff macs_wrapper.py @ 2:5d67bc6f385f draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/macs commit 206cd8245e7619b0e924c5066d0172129222993d"
author devteam
date Wed, 05 Feb 2020 15:28:57 +0000
parents 512c6b2dba00
children
line wrap: on
line diff
--- a/macs_wrapper.py	Tue Oct 13 12:24:35 2015 -0400
+++ b/macs_wrapper.py	Wed Feb 05 15:28:57 2020 +0000
@@ -122,14 +122,14 @@
             os.rmdir( wig_base_dir )
     
     #move all remaining files to extra files path of html file output to allow user download
-    out_html = open( output_extra_html, 'wb' )
+    out_html = open( output_extra_html, 'w' )
     out_html.write( '<html><head><title>Additional output created by MACS (%s)</title></head><body><h3>Additional Files:</h3><p><ul>\n' % experiment_name )
     os.mkdir( output_extra_path )
     for filename in sorted( os.listdir( tmp_dir ) ):
         shutil.move( os.path.join( tmp_dir, filename ), os.path.join( output_extra_path, filename ) )
         out_html.write( '<li><a href="%s">%s</a></li>\n' % ( filename, filename ) )
     out_html.write( '</ul></p>\n' )
-    out_html.write( '<h3>Messages from MACS:</h3>\n<p><pre>%s</pre></p>\n' % open( stderr_name, 'rb' ).read() )
+    out_html.write( '<h3>Messages from MACS:</h3>\n<p><pre>%s</pre></p>\n' % open( stderr_name, 'r' ).read() )
     out_html.write( '</body></html>\n' )
     out_html.close()