mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 01:51:26 +00:00
python: Use "if x not in" instead of "if not x in".
For flake8 rule E713, "Test for membership should be 'not in'" so replace any "if not x in the_list" with "if x not in the_list" Acked-by: Mike Pattrick <mkp@redhat.com> Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
parent
ba5a1536cd
commit
8433cea48d
@ -290,11 +290,11 @@ def parse_field(mff, comment):
|
||||
fatal("%s: unknown access %s" % (mff, d["Access"]))
|
||||
|
||||
f["OF1.0"] = d["OF1.0"]
|
||||
if not d["OF1.0"] in (None, "exact match", "CIDR mask"):
|
||||
if d["OF1.0"] not in (None, "exact match", "CIDR mask"):
|
||||
fatal("%s: unknown OF1.0 match type %s" % (mff, d["OF1.0"]))
|
||||
|
||||
f["OF1.1"] = d["OF1.1"]
|
||||
if not d["OF1.1"] in (None, "exact match", "bitwise mask"):
|
||||
if d["OF1.1"] not in (None, "exact match", "bitwise mask"):
|
||||
fatal("%s: unknown OF1.1 match type %s" % (mff, d["OF1.1"]))
|
||||
|
||||
f["OXM"] = parse_oxms(d["OXM"], "OXM", f["n_bytes"]) + parse_oxms(
|
||||
|
Loading…
x
Reference in New Issue
Block a user