tp-qemu: PEP8 E714 fixes

Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 8ee9b5ea
......@@ -75,7 +75,7 @@ class InfrastructureInit(MiniSubtest):
def clean(self, test, params, env):
if self.ovs:
try:
if not self.dns_pidf is None:
if self.dns_pidf is not None:
utils_misc.signal_program(self.dns_pidf[0:-4],
pid_files_dir=test.tmpdir)
except:
......
......@@ -161,7 +161,7 @@ def run(test, params, env):
self.last_model += self.last_arch[attrs['name']]
self.sub_model = True
elif name == "feature":
if not self.last_model is None:
if self.last_model is not None:
self.last_model.append(attrs['name'])
else:
self.all_flags.append(attrs['name'])
......
......@@ -70,7 +70,7 @@ def run(test, params, env):
utils.run(server_setup_cmd % (monitor_dir, threshold,
monitor_log_file_server, monitor_port))
if not stress_setup_cmd is None:
if stress_setup_cmd is not None:
logging.info("Build stress on host")
# Uncompress and build stress on host
utils.run(stress_setup_cmd % stress_dir)
......@@ -121,7 +121,7 @@ def run(test, params, env):
session.cmd(params.get("client_setup_cmd") %
("/tmp", host_ip, monitor_log_file_client, monitor_port))
if not stress_setup_cmd is None:
if stress_setup_cmd is not None:
# Copy, uncompress and build stress on guest
stress_source = params.get("stress_source")
stress_path = os.path.join(stress_dir, stress_source)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册