diff hgext/hgk.py @ 13031:3da456d0c885

code style: prefer 'is' and 'is not' tests with singletons
author Martin Geisler <mg@aragost.com>
date Mon, 22 Nov 2010 18:15:58 +0100
parents ebfc46929f3e
children a90131b85fd8
line wrap: on
line diff
--- a/hgext/hgk.py	Mon Nov 22 17:57:11 2010 +0100
+++ b/hgext/hgk.py	Mon Nov 22 18:15:58 2010 +0100
@@ -181,14 +181,14 @@
                 if i + x >= count:
                     l[chunk - x:] = [0] * (chunk - x)
                     break
-                if full != None:
+                if full is not None:
                     l[x] = repo[i + x]
                     l[x].changeset() # force reading
                 else:
                     l[x] = 1
             for x in xrange(chunk - 1, -1, -1):
                 if l[x] != 0:
-                    yield (i + x, full != None and l[x] or None)
+                    yield (i + x, full is not None and l[x] or None)
             if i == 0:
                 break