diff mercurial/revset.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 bdb766e64d35
children 87f248e78173
line wrap: on
line diff
--- a/mercurial/revset.py	Mon Nov 22 17:57:11 2010 +0100
+++ b/mercurial/revset.py	Mon Nov 22 18:15:58 2010 +0100
@@ -715,7 +715,7 @@
 }
 
 def optimize(x, small):
-    if x == None:
+    if x is None:
         return 0, x
 
     smallbonus = 1