Introduction
Introduction Statistics Contact Development Disclaimer Help
Proper way of getting next values in a generator - toot - Unnamed repository; e…
Log
Files
Refs
LICENSE
---
commit 3a1d7e17aaaa2d0f2e3c7b99692f9c5ceef63ed5
parent 0c4a5f3aaf8833f8d70e83aa6ef772c6ce1300dd
Author: Ivan Habunek <[email protected]>
Date: Wed, 26 Apr 2017 11:25:12 +0200
Proper way of getting next values in a generator
Diffstat:
toot/app.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/toot/app.py b/toot/app.py
@@ -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
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.