[PATCH 5/6] repository/Maildir.py: use f variable instead of folder
Nicolas Sebrecht
nicolas.s-dev at laposte.net
Thu Jan 8 23:03:20 GMT 2015
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev at laposte.net>
---
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):
--
2.2.1
More information about the OfflineIMAP-project
mailing list