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/CODING_STYLE b/CODING_STYLE
index 452e5f7..7c655fe 100644
--- a/CODING_STYLE
+++ b/CODING_STYLE
@@ -38,6 +38,7 @@
 of your variable_names please. I shall make a bedgrudging exception for class
 names I suppose, but I'll still whine about it a lot.
 
+
 Importing modules
 
 The order of imports should be as follows:
@@ -62,6 +63,12 @@
 import MySQLdb
 from common_lib import error
 
+Testing None
+
+Use "is None" rather than "== None" and "is not None" rather than "!= None".
+This way you'll never run into a case where someone's __eq__ or __ne__ 
+method do the wrong thing
+
 
 Comments