1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-11-03 04:17:21 -05:00

Proper way of getting next values in a generator

This commit is contained in:
Ivan Habunek 2017-04-26 11:25:12 +02:00
parent 0c4a5f3aaf
commit 3a1d7e17aa
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -109,7 +109,7 @@ class TimelineApp:
def fetch_next(self):
try:
statuses = self.status_generator.__next__()
statuses = next(self.status_generator)
except StopIteration:
return None