From 8c6de099f973a46d49017f9704a2e7b1fcc6885e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sun, 1 Nov 2020 12:54:59 +0100 Subject: [PATCH] LocalStatus.py Renamed variable Variable bk is renamed to bkend to avoid this pylint warning: repository/LocalStatus.py:88:12: C0103: Variable name "bk" doesn't conform to snake_case naming style (invalid-name) --- offlineimap/repository/LocalStatus.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/offlineimap/repository/LocalStatus.py b/offlineimap/repository/LocalStatus.py index cb0ecdf..40d076a 100644 --- a/offlineimap/repository/LocalStatus.py +++ b/offlineimap/repository/LocalStatus.py @@ -85,20 +85,20 @@ class LocalStatusRepository(BaseRepository): Returns: None """ - for bk, dic in list(self.backends.items()): + for bkend, dic in list(self.backends.items()): # Skip folder's own type. if dic['class'] == type(folder): continue repobk = LocalStatusRepository(self.name, self.account) - repobk.setup_backend(bk) # Fake the backend. + repobk.setup_backend(bkend) # Fake the backend. folderbk = dic['class'](folder.name, repobk) # If backend contains data, import it to folder. if not folderbk.isnewfolder(): self.ui._msg("Migrating LocalStatus cache from %s to %s " "status folder for %s:%s" % - (bk, self._backend, self.name, folder.name)) + (bkend, self._backend, self.name, folder.name)) folderbk.cachemessagelist() folder.messagelist = folderbk.messagelist