convert to print_function, and start adding unicode_literals future as well
[htsworkflow.git] / htsworkflow / pipelines / srf2fastq.py
index 0d895d9e4b18c8fbb968da470639df8808424339..0805879c2dad1b6a09b8090c3cc4b7661c93c094 100644 (file)
@@ -1,4 +1,6 @@
 #!/usr/bin/env python
+from __future__ import print_function, unicode_literals
+
 import logging
 import mmap
 from optparse import OptionParser
@@ -27,7 +29,7 @@ def main(cmdline=None):
         logging.basicConfig(level=logging.WARN)
 
     if opts.version:
-        print version()
+        print(version())
         return 0
 
     if len(args) != 1:
@@ -241,7 +243,7 @@ def foo():
     target2_name = base + '_r2.fastq'
 
     for target_name in [target1_name, target2_name]:
-        print 'target name', target_name
+        print('target name', target_name)
         if os.path.exists(target_name):
             raise RuntimeError("%s exists" % (target_name,))