diff options
author | Lucas Hoffmann <l-m-h@web.de> | 2017-08-18 20:21:25 +0200 |
---|---|---|
committer | Lucas Hoffmann <l-m-h@web.de> | 2017-08-20 02:33:00 +0200 |
commit | 841c7cc1b70ce90297c332a05afb0e1a45b225cf (patch) | |
tree | 49f5088baede3633fc108981d5b40df3798ae80d /alot/db/thread.py | |
parent | d8f1fc89cb1b357de970e2889494199749cffc1f (diff) |
py3k: Use build in next function
Diffstat (limited to 'alot/db/thread.py')
-rw-r--r-- | alot/db/thread.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |