From 3aba3351098a08b20d1723893ef9f74f4ccae2d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sun, 30 Aug 2020 14:15:49 +0200 Subject: [PATCH] repository/Base.py changed not var in This patch changes: if not var1 in var2 with if var1 not in var2 --- offlineimap/repository/Base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/offlineimap/repository/Base.py b/offlineimap/repository/Base.py index 300c7a2..7893708 100644 --- a/offlineimap/repository/Base.py +++ b/offlineimap/repository/Base.py @@ -204,7 +204,7 @@ class BaseRepository(CustomConfig.ConfigHelperMixin): # Apply remote nametrans and fix serparator. local_name = remote_folder.getvisiblename().replace( remote_repo.getsep(), local_repo.getsep()) - if remote_folder.sync_this and not local_name in list(local_hash.keys()): + if remote_folder.sync_this and local_name not in list(local_hash.keys()): try: local_repo.makefolder(local_name) # Need to refresh list. @@ -226,7 +226,7 @@ class BaseRepository(CustomConfig.ConfigHelperMixin): # Apply reverse nametrans and fix serparator. remote_name = local_folder.getvisiblename().replace( local_repo.getsep(), remote_repo.getsep()) - if local_folder.sync_this and not remote_name in list(remote_hash.keys()): + if local_folder.sync_this and remote_name not in list(remote_hash.keys()): # Would the remote filter out the new folder name? In this case # don't create it. if not remote_repo.should_sync_folder(remote_name):