Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def next(self):
"""Return the next line."""
read = bamnostic.AlignedSegment(self)
if not read:
return
return read
def __next__(self):
"""Return the next line (Py2 Compatibility)."""
read = bamnostic.AlignedSegment(self)
if not read:
raise StopIteration
return read