this works better with python 3...
authorDiane Trout <diane@caltech.edu>
Tue, 20 Oct 2015 23:50:44 +0000 (16:50 -0700)
committerDiane Trout <diane@caltech.edu>
Tue, 20 Oct 2015 23:50:44 +0000 (16:50 -0700)
htsworkflow/pipelines/desplit_fastq.py

index 6fe8d0720f83ec592c555eaf8958426192dcf8de..46a75094a351802b4e3c8e7f02449ebf2d737602 100644 (file)
@@ -31,9 +31,9 @@ def main(cmdline=None):
 
     if opts.output is not None:
         if opts.bzip:
-            output = bz2.BZ2File(opts.output, 'wt')
+            output = bz2.open(opts.output, 'wt')
         elif opts.gzip:
-            output = gzip.GzipFile(opts.output, 'wt')
+            output = gzip.open(opts.output, 'wt')
         else:
             output = open(opts.output, 'w')
     else: