Commits

Sean Davis committed 12990b0

Fixed fastq IO reading to account for python3 changes

  • Participants
  • Parent commits 326337d

Comments (0)

Files changed (2)

seqtools/fastq.py

 
     def __str__(self):
         """String represendation, suitable for output to a fastq file"""
-        return "%s\n%s\n%s\n%s\n" % (self.header,self.sequence,self.line3,self.quality)
+        return "{}\n{}\n{}\n{}".format(self.header,self.sequence,self.line3,self.quality)
     
 
 class Fastq(object):
     def _getNextRecord(self):
         x = []
         for i in range(0,4):
-            nextLine=self.fh.next().strip()
+            nextLine=self.fh.readline().strip()
             x.append(nextLine)
             if(nextLine==''):
                 return None
 from setuptools import setup, find_packages
 import sys, os, glob
 
-version = '0.4.0'
+version = '0.4.1'
 
 setup(name='seqtools',
       version=version,