From 070f9a31a663aae4df57d43f37d3073c5319c358 Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Tue, 26 Jun 2018 07:19:39 +0000 Subject: [PATCH] SW-378: processed review comment: use is None instead of == None --- QA/QA_Common/lib/cep4_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QA/QA_Common/lib/cep4_utils.py b/QA/QA_Common/lib/cep4_utils.py index c6ccec46213..66c4c6d44b1 100644 --- a/QA/QA_Common/lib/cep4_utils.py +++ b/QA/QA_Common/lib/cep4_utils.py @@ -158,7 +158,7 @@ def get_cep4_cpu_nodes_loads(node_nrs=None): :param node_nrs: optional list of node numbers to get the load for. If None, then all available nodes are queried. :return: dict with node_nr -> load mapping """ - if node_nrs == None: + if node_nrs is None: node_nrs = get_cep4_available_cpu_nodes() procs = {} -- GitLab