Loading debian/patches/2to3.patch +2 −19 Original line number Diff line number Diff line Loading @@ -20,23 +20,6 @@ Description: Use 2to3 to convert from Python2 to Python3 import re import sys @@ -24,14 +24,14 @@ class Peeker: def __iter__(self): return self - def next(self): + def __next__(self): if self.buffer: return self.buffer.pop(0) else: return next(self.iter) def __next__(self): - return self.next() + return next(self) def peek(self, n=0): """Return an item n entries ahead in the iteration.""" --- a/data/scripts/check-gff3.py +++ b/data/scripts/check-gff3.py @@ -1,4 +1,4 @@ Loading @@ -54,7 +37,7 @@ Description: Use 2to3 to convert from Python2 to Python3 import re import sys @@ -50,7 +50,7 @@ for line in sys.stdin: @@ -50,7 +50,7 @@ topleveltypes[values[2]] += 1 print('\n===== Types =====') Loading @@ -63,7 +46,7 @@ Description: Use 2to3 to convert from Python2 to Python3 featuretypes.sort() for featuretype in featuretypes: count = counts[featuretype] @@ -60,7 +60,7 @@ for featuretype in featuretypes: @@ -60,7 +60,7 @@ print('%s (%lu total, %lu top-level)' % (featuretype, count, topcount)) print('\n===== Relationships (child --> parent) =====') Loading Loading
debian/patches/2to3.patch +2 −19 Original line number Diff line number Diff line Loading @@ -20,23 +20,6 @@ Description: Use 2to3 to convert from Python2 to Python3 import re import sys @@ -24,14 +24,14 @@ class Peeker: def __iter__(self): return self - def next(self): + def __next__(self): if self.buffer: return self.buffer.pop(0) else: return next(self.iter) def __next__(self): - return self.next() + return next(self) def peek(self, n=0): """Return an item n entries ahead in the iteration.""" --- a/data/scripts/check-gff3.py +++ b/data/scripts/check-gff3.py @@ -1,4 +1,4 @@ Loading @@ -54,7 +37,7 @@ Description: Use 2to3 to convert from Python2 to Python3 import re import sys @@ -50,7 +50,7 @@ for line in sys.stdin: @@ -50,7 +50,7 @@ topleveltypes[values[2]] += 1 print('\n===== Types =====') Loading @@ -63,7 +46,7 @@ Description: Use 2to3 to convert from Python2 to Python3 featuretypes.sort() for featuretype in featuretypes: count = counts[featuretype] @@ -60,7 +60,7 @@ for featuretype in featuretypes: @@ -60,7 +60,7 @@ print('%s (%lu total, %lu top-level)' % (featuretype, count, topcount)) print('\n===== Relationships (child --> parent) =====') Loading