summaryrefslogtreecommitdiff
path: root/python/samba/gpclass.py
diff options
context:
space:
mode:
authorJoe Guo <joeg@catalyst.net.nz>2018-07-30 18:22:34 +1200
committerDouglas Bagnall <dbagnall@samba.org>2018-08-24 07:49:31 +0200
commit9f5bbcc10a82f409f41cce5685458332674e2010 (patch)
treea59d97bc3fde571981c10889d9d6a6651efc567d /python/samba/gpclass.py
parent1676a4dcae505142036dff49eb4d65ff6e9854b2 (diff)
downloadsamba-9f5bbcc10a82f409f41cce5685458332674e2010.tar.gz
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>
Diffstat (limited to 'python/samba/gpclass.py')
-rw-r--r--python/samba/gpclass.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/samba/gpclass.py b/python/samba/gpclass.py
index 22f57c0dd95..8fb2f9344a6 100644
--- a/python/samba/gpclass.py
+++ b/python/samba/gpclass.py
@@ -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)