diff mercurial/verify.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 5a1912b5aa42
children eb914541a950
line wrap: on
line diff
--- a/mercurial/verify.py	Mon Nov 22 17:57:11 2010 +0100
+++ b/mercurial/verify.py	Mon Nov 22 18:15:58 2010 +0100
@@ -34,7 +34,7 @@
         raise util.Abort(_("cannot verify bundle or remote repos"))
 
     def err(linkrev, msg, filename=None):
-        if linkrev != None:
+        if linkrev is not None:
             badrevs.add(linkrev)
         else:
             linkrev = '?'