folder/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:
Rodolfo García Peñas (kix) 2020-08-30 12:42:28 +02:00
parent 56299086e2
commit 1fc10875a6

View File

@ -1042,12 +1042,12 @@ class BaseFolder:
delflags = statusflags - selfflags delflags = statusflags - selfflags
for flag in addflags: for flag in addflags:
if not flag in addflaglist: if flag not in addflaglist:
addflaglist[flag] = [] addflaglist[flag] = []
addflaglist[flag].append(uid) addflaglist[flag].append(uid)
for flag in delflags: for flag in delflags:
if not flag in delflaglist: if flag not in delflaglist:
delflaglist[flag] = [] delflaglist[flag] = []
delflaglist[flag].append(uid) delflaglist[flag].append(uid)