Proper way of getting next values in a generator

pull/31/head
Ivan Habunek 2017-04-26 11:25:12 +02:00
rodzic 0c4a5f3aaf
commit 3a1d7e17aa
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: CDBD63C43A30BB95
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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