PEP8: fix E713: test for membership should be 'not in'
[nivanova/samba-autobuild/.git] / python / samba / gpclass.py
index 22f57c0dd95a47da6b318c3e6b55b8ad3fc5b228..8fb2f9344a6a3aead8ce963042746e23fc051223 100644 (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)