mirror of
https://github.com/samba-team/samba.git
synced 2025-12-19 12:23:49 +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:
@@ -110,7 +110,7 @@ class cmd_dbcheck(Command):
|
||||
|
||||
scope_map = {"SUB": ldb.SCOPE_SUBTREE, "BASE": ldb.SCOPE_BASE, "ONE": ldb.SCOPE_ONELEVEL}
|
||||
scope = scope.upper()
|
||||
if not scope in scope_map:
|
||||
if scope not in scope_map:
|
||||
raise CommandError("Unknown scope %s" % scope)
|
||||
search_scope = scope_map[scope]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user