repository/Base.py changed not var in
This patch changes: if not var1 in var2 with if var1 not in var2
This commit is contained in:
parent
ad0920de72
commit
3aba335109
@ -204,7 +204,7 @@ class BaseRepository(CustomConfig.ConfigHelperMixin):
|
|||||||
# Apply remote nametrans and fix serparator.
|
# Apply remote nametrans and fix serparator.
|
||||||
local_name = remote_folder.getvisiblename().replace(
|
local_name = remote_folder.getvisiblename().replace(
|
||||||
remote_repo.getsep(), local_repo.getsep())
|
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:
|
try:
|
||||||
local_repo.makefolder(local_name)
|
local_repo.makefolder(local_name)
|
||||||
# Need to refresh list.
|
# Need to refresh list.
|
||||||
@ -226,7 +226,7 @@ class BaseRepository(CustomConfig.ConfigHelperMixin):
|
|||||||
# Apply reverse nametrans and fix serparator.
|
# Apply reverse nametrans and fix serparator.
|
||||||
remote_name = local_folder.getvisiblename().replace(
|
remote_name = local_folder.getvisiblename().replace(
|
||||||
local_repo.getsep(), remote_repo.getsep())
|
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
|
# Would the remote filter out the new folder name? In this case
|
||||||
# don't create it.
|
# don't create it.
|
||||||
if not remote_repo.should_sync_folder(remote_name):
|
if not remote_repo.should_sync_folder(remote_name):
|
||||||
|
Loading…
Reference in New Issue
Block a user