[PATCH 15/15] Wrap zip calls with list call
Łukasz Żarnowiecki
dolohow at outlook.com
Tue May 10 00:18:37 BST 2016
In Python3, zip returns iterator instead of list.
Signed-off-by: Łukasz Żarnowiecki <dolohow at outlook.com>
---
offlineimap/folder/LocalStatusSQLite.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/offlineimap/folder/LocalStatusSQLite.py b/offlineimap/folder/LocalStatusSQLite.py
index e1e63e5..f39dd4a 100644
--- a/offlineimap/folder/LocalStatusSQLite.py
+++ b/offlineimap/folder/LocalStatusSQLite.py
@@ -400,6 +400,6 @@ class LocalStatusSQLiteFolder(BaseFolder):
if not len(uidlist):
return
# arg2 needs to be an iterable of 1-tuples [(1,),(2,),...]
- self.__sql_write('DELETE FROM status WHERE id=?', zip(uidlist, ), True)
+ self.__sql_write('DELETE FROM status WHERE id=?', list(zip(uidlist, )), True)
for uid in uidlist:
del(self.messagelist[uid])
--
2.8.2
More information about the OfflineIMAP-project
mailing list