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:
@ -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)
|
||||
|
Reference in New Issue
Block a user