diff options
author | Gurucharan Shetty <guru@ovn.org> | 2016-06-05 23:11:08 -0700 |
---|---|---|
committer | Gurucharan Shetty <guru@ovn.org> | 2016-06-09 11:04:45 -0700 |
commit | b7649c7316b735ee8e0378c2306fda7a198470b7 (patch) | |
tree | 4bde2da4fc320be4fc049f0aaebe3d1c53e3f10f /utilities/bugtool | |
parent | b0195f47e94728da410e8b2c021afd8264291b42 (diff) | |
download | openvswitch-b7649c7316b735ee8e0378c2306fda7a198470b7.tar.gz |
ovs-bugtool.in: Test for membership should be 'not in'.
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Acked-by: Ryan Moats <rmoats@us.ibm.com>
Diffstat (limited to 'utilities/bugtool')
-rwxr-xr-x | utilities/bugtool/ovs-bugtool.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utilities/bugtool/ovs-bugtool.in b/utilities/bugtool/ovs-bugtool.in index 95ea482ab..ced74a9ef 100755 --- a/utilities/bugtool/ovs-bugtool.in +++ b/utilities/bugtool/ovs-bugtool.in @@ -334,7 +334,7 @@ def collect_data(): cap = v['cap'] if 'cmd_args' in v: v['output'] = StringIOmtime() - if not cap in process_lists: + if cap not in process_lists: process_lists[cap] = [] process_lists[cap].append( ProcOutput(v['cmd_args'], caps[cap][MAX_TIME], v['output'], @@ -824,7 +824,7 @@ def fd_usage(cap): name = fh.readline() num_fds = len(os.listdir(os.path.join('/proc/' + d + '/fd'))) if num_fds > 0: - if not num_fds in fd_dict: + if num_fds not in fd_dict: fd_dict[num_fds] = [] fd_dict[num_fds].append(name.replace('\0', ' ').strip()) finally: @@ -873,7 +873,7 @@ def load_plugins(just_capabilities=False, filter=None): for dir in [d for d in os.listdir(PLUGIN_DIR) if os.path.isdir(os.path.join(PLUGIN_DIR, d))]: - if not dir in caps: + if dir not in caps: if not os.path.exists("%s/%s.xml" % (PLUGIN_DIR, dir)): continue xmldoc = parse("%s/%s.xml" % (PLUGIN_DIR, dir)) |