Python3 compatibility in timetable listing

itertools changed a little between py2 and py3
This commit is contained in:
James Polley 2017-09-17 22:08:39 +10:00
parent d22273b1c5
commit 183dea0b6e

View file

@ -47,5 +47,5 @@ class TimeTable(object):
def pairwise(iterable):
a, b = itertools.tee(iterable)
b.next()
return itertools.izip_longest(a, b)
next(b)
return itertools.zip_longest(a, b)