diff options
author | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2008-12-03 15:09:17 +0000 |
---|---|---|
committer | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2008-12-03 15:09:17 +0000 |
commit | 088ee9dc865e2ea1a5f6d7c4fb5ba8601394872d (patch) | |
tree | 36b083983aba76507fab57868006c06f2b8eac8d /tko/compose_query.cgi | |
parent | 812a4eb1d9f566104442984855dfd9e4e96d4ebd (diff) |
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: svn://test.kernel.org/autotest/trunk@2533 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko/compose_query.cgi')
-rwxr-xr-x | tko/compose_query.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tko/compose_query.cgi b/tko/compose_query.cgi index f02d2192..9bae9c71 100755 --- a/tko/compose_query.cgi +++ b/tko/compose_query.cgi @@ -239,7 +239,7 @@ def map_kernel_init(): def map_kernel(name): global map_kernel_map - if map_kernel_map == None: + if map_kernel_map is None: map_kernel_map = map_kernel_init() if map_kernel_map.has_key(name): |