From 594a286888bf0ed8de7fe4a40f757a4cac56878b Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Thu, 8 Jan 2015 22:28:45 +0100 Subject: [PATCH] repository/Maildir.py: use f variable instead of folder Signed-off-by: Nicolas Sebrecht --- offlineimap/repository/Maildir.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/offlineimap/repository/Maildir.py b/offlineimap/repository/Maildir.py index f0495fa..9c244bf 100644 --- a/offlineimap/repository/Maildir.py +++ b/offlineimap/repository/Maildir.py @@ -130,11 +130,11 @@ class MaildirRepository(BaseRepository): name will return the same object.""" # getfolders() will scan and cache the values *if* necessary folders = self.getfolders() - for folder in folders: - if foldername == folder.name: - return folder + for f in folders: + if foldername == f.name: + return f raise OfflineImapError("getfolder() asked for a nonexisting " - "folder '%s'." % foldername, + "folder '%s'."% foldername, OfflineImapError.ERROR.FOLDER) def _getfolders_scandir(self, root, extension=None):