From dcc50efc4f3d66e5b04c4a04a1b4346959190c9b Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Mon, 22 Aug 2011 14:58:42 +0200 Subject: [PATCH] Don't call set().sort() as that method doesn't exist on sets. Rather call the inbuilt sorted(flags). This fixes Exceptions being thrown when using the sqlite backend. Signed-off-by: Sebastian Spaeth Signed-off-by: Nicolas Sebrecht --- offlineimap/folder/LocalStatusSQLite.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/offlineimap/folder/LocalStatusSQLite.py b/offlineimap/folder/LocalStatusSQLite.py index 11791d0..eae5d0c 100644 --- a/offlineimap/folder/LocalStatusSQLite.py +++ b/offlineimap/folder/LocalStatusSQLite.py @@ -231,8 +231,7 @@ class LocalStatusSQLiteFolder(LocalStatusFolder): def savemessageflags(self, uid, flags): self.messagelist[uid] = {'uid': uid, 'flags': flags} - flags.sort() - flags = ''.join(flags) + flags = ''.join(sorted(flags)) self.sql_write('UPDATE status SET flags=? WHERE id=?',(flags,uid)) def deletemessages(self, uidlist):