1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-23 20:59:10 +03:00

PEP8: fix E713: test for membership should be 'not in'

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Joe Guo
2018-07-30 18:22:34 +12:00
committed by Douglas Bagnall
parent 1676a4dcae
commit 9f5bbcc10a
32 changed files with 94 additions and 94 deletions

View File

@ -448,7 +448,7 @@ def check_safe_path(path):
dirs = re.split('/|\\\\', path)
if 'sysvol' in path:
dirs = dirs[dirs.index('sysvol') + 1:]
if not '..' in dirs:
if '..' not in dirs:
return os.path.join(*dirs)
raise OSError(path)
@ -567,7 +567,7 @@ def register_gp_extension(guid, name, path,
return False
lp, parser = parse_gpext_conf(smb_conf)
if not guid in parser.sections():
if guid not in parser.sections():
parser.add_section(guid)
parser.set(guid, 'DllName', path)
parser.set(guid, 'ProcessGroupPolicy', name)