From 6352a0ef3ea5d80771276bcf4b928dda3acdbc08 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Wed, 22 Aug 2018 10:18:46 +0200 Subject: [PATCH] Fix wiggle2simple1 --- lib/galaxy/util/ucsc.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/galaxy/util/ucsc.py b/lib/galaxy/util/ucsc.py index 1542542b95d..295fa4608ad 100644 --- a/lib/galaxy/util/ucsc.py +++ b/lib/galaxy/util/ucsc.py @@ -18,19 +18,22 @@ class UCSCOutWrapper(object): def __iter__(self): return self - def next(self): + def __next__(self): if self.lookahead is None: - line = self.other.next() + line = next(self.other) else: line = self.lookahead self.lookahead = None if line.startswith("----------"): - next_line = self.other.next() + next_line = next(self.other) if next_line.startswith("Reached output limit"): raise UCSCLimitException(next_line.strip()) else: self.lookahead = next_line return line + def next(self): + return self.__next__() + def readline(self): return self.next()