diff options
| author | Joe Guo <joeg@catalyst.net.nz> | 2018-07-30 18:22:34 +1200 |
|---|---|---|
| committer | Douglas Bagnall <dbagnall@samba.org> | 2018-08-24 07:49:31 +0200 |
| commit | 9f5bbcc10a82f409f41cce5685458332674e2010 (patch) | |
| tree | a59d97bc3fde571981c10889d9d6a6651efc567d /source4/dsdb/tests/python/ldap.py | |
| parent | 1676a4dcae505142036dff49eb4d65ff6e9854b2 (diff) | |
| download | samba-9f5bbcc10a82f409f41cce5685458332674e2010.tar.gz samba-9f5bbcc10a82f409f41cce5685458332674e2010.tar.bz2 samba-9f5bbcc10a82f409f41cce5685458332674e2010.zip | |
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 'source4/dsdb/tests/python/ldap.py')
| -rwxr-xr-x | source4/dsdb/tests/python/ldap.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/tests/python/ldap.py b/source4/dsdb/tests/python/ldap.py index b2ef01b9420..dac8aa0fd67 100755 --- a/source4/dsdb/tests/python/ldap.py +++ b/source4/dsdb/tests/python/ldap.py @@ -3271,14 +3271,14 @@ class BaseDnTests(samba.tests.TestCase): self.assertEquals(given, expected) -if not "://" in host: +if "://" not in host: if os.path.isfile(host): host = "tdb://%s" % host else: host = "ldap://%s" % host ldb = SamDB(host, credentials=creds, session_info=system_session(lp), lp=lp) -if not "tdb://" in host: +if "tdb://" not in host: gc_ldb = Ldb("%s:3268" % host, credentials=creds, session_info=system_session(lp), lp=lp) else: |
