obi import: fixed bug caused by new behaviour of StopIteration
exceptions in Python>=3.7
This commit is contained in:
@ -103,7 +103,11 @@ def fastqWithQualityIterator(lineiterator,
|
||||
yield seq
|
||||
|
||||
read+=1
|
||||
hline = next(i)
|
||||
try:
|
||||
hline = next(i)
|
||||
except StopIteration:
|
||||
return
|
||||
|
||||
|
||||
|
||||
def fastqWithoutQualityIterator(lineiterator,
|
||||
@ -174,5 +178,7 @@ def fastqWithoutQualityIterator(lineiterator,
|
||||
yield seq
|
||||
|
||||
read+=1
|
||||
hline = next(i)
|
||||
|
||||
try:
|
||||
hline = next(i)
|
||||
except StopIteration:
|
||||
return
|
||||
|
@ -99,7 +99,10 @@ def tabIterator(lineiterator,
|
||||
|
||||
read+=1
|
||||
|
||||
line = next(iterator)
|
||||
try:
|
||||
line = next(iterator)
|
||||
except StopIteration:
|
||||
return
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
major = 3
|
||||
minor = 0
|
||||
serial= '1b24'
|
||||
serial= '1b25'
|
||||
|
||||
version ="%d.%d.%s" % (major,minor,serial)
|
||||
|
Reference in New Issue
Block a user