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 /python/samba/samba3 | |
parent | 1676a4dcae505142036dff49eb4d65ff6e9854b2 (diff) | |
download | samba-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/samba3')
-rw-r--r-- | python/samba/samba3/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/samba3/__init__.py b/python/samba/samba3/__init__.py index 1f8c5100bcb..78588e0c349 100644 --- a/python/samba/samba3/__init__.py +++ b/python/samba/samba3/__init__.py @@ -337,7 +337,7 @@ class WinsDatabase(object): ips.append(entries[i]) i += 1 nb_flags = int(entries[i][:-1], 16) - assert not name in self.entries, "Name %s exists twice" % name + assert name not in self.entries, "Name %s exists twice" % name self.entries[name] = (ttl, ips, nb_flags) f.close() |