summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJoe Guo <joeg@catalyst.net.nz>2018-07-30 15:45:18 +1200
committerDouglas Bagnall <dbagnall@samba.org>2018-08-24 07:49:25 +0200
commit5027405d0c3c738a42afc4a10938b8d22ab8e240 (patch)
tree5a13e0e45e4e2ed6d8ea1a20d6ab128510b78617 /source4
parente551f5f50295e16aa56e80a5991a55d2d7b8a36d (diff)
downloadsamba-5027405d0c3c738a42afc4a10938b8d22ab8e240.tar.gz
PEP8: fix E714: test for object identity should be 'is not'
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 'source4')
-rw-r--r--source4/torture/drs/python/repl_schema.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/drs/python/repl_schema.py b/source4/torture/drs/python/repl_schema.py
index 8c288e42d92..ed3ad094fec 100644
--- a/source4/torture/drs/python/repl_schema.py
+++ b/source4/torture/drs/python/repl_schema.py
@@ -127,7 +127,7 @@ class DrsReplSchemaTestCase(drs_base.DrsBaseTestCase):
"subClassOf": "top",
"systemOnly": "FALSE"}
# allow overriding/adding attributes
- if not attrs is None:
+ if attrs is not None:
rec.update(attrs)
# add it to the Schema
try:
@@ -153,7 +153,7 @@ class DrsReplSchemaTestCase(drs_base.DrsBaseTestCase):
"isSingleValued": "TRUE",
"systemOnly": "FALSE"}
# allow overriding/adding attributes
- if not attrs is None:
+ if attrs is not None:
rec.update(attrs)
# add it to the Schema
ldb_ctx.add(rec)