Wrap zip calls with list call
In Python3, zip returns iterator instead of list. Signed-off-by: Łukasz Żarnowiecki <dolohow@outlook.com> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
ca2d85a6dc
commit
12866f2771
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user