From c2b8a99fa23003b0c50a2fc886a417fa34eca129 Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Sun, 11 Jan 2015 10:00:37 +0100 Subject: [PATCH] repository: IMAP.py: do not redefine string Signed-off-by: Nicolas Sebrecht --- offlineimap/repository/IMAP.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/offlineimap/repository/IMAP.py b/offlineimap/repository/IMAP.py index 2baa046..0334237 100644 --- a/offlineimap/repository/IMAP.py +++ b/offlineimap/repository/IMAP.py @@ -326,13 +326,13 @@ class IMAPRepository(BaseRepository): listresult = listfunction(directory = self.imapserver.reference)[1] finally: self.imapserver.releaseconnection(imapobj) - for string in listresult: - if string == None or \ - (isinstance(string, basestring) and string == ''): + for s in listresult: + if s == None or \ + (isinstance(s, basestring) and s == ''): # Bug in imaplib: empty strings in results from # literals. TODO: still relevant? continue - flags, delim, name = imaputil.imapsplit(string) + flags, delim, name = imaputil.imapsplit(s) flaglist = [x.lower() for x in imaputil.flagsplit(flags)] if '\\noselect' in flaglist: continue