gps pointed out that "== and != work in most cases but its better to use is
and is not as you'll never run into a case where someone's __eq__ or __ne__
method do the wrong thing."
Signed-off-by: Martin J. Bligh <mbligh@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2533 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/common_lib/utils.py b/client/common_lib/utils.py
index f85213f..ec5a92f 100644
--- a/client/common_lib/utils.py
+++ b/client/common_lib/utils.py
@@ -441,7 +441,7 @@
for i in range(5):
rc = subproc.poll()
- if rc != None:
+ if rc is not None:
return rc
time.sleep(1)