From 841c7cc1b70ce90297c332a05afb0e1a45b225cf Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Fri, 18 Aug 2017 20:21:25 +0200 Subject: py3k: Use build in next function --- alot/db/thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alot/db/thread.py') diff --git a/alot/db/thread.py b/alot/db/thread.py index 69b81870..3d9144db 100644 --- a/alot/db/thread.py +++ b/alot/db/thread.py @@ -231,7 +231,7 @@ class Thread(object): """ if not self._messages: # if not already cached query = self._dbman.query('thread:' + self._id) - thread = query.search_threads().next() + thread = next(query.search_threads()) def accumulate(acc, msg): M = Message(self._dbman, msg, thread=self) -- cgit v1.2.3