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
1 changed files with 1 additions and 1 deletions

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