diff hgext/bookmarks.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 161fe4879bfc
children e41e2b79883d
line wrap: on
line diff
--- a/hgext/bookmarks.py	Mon Nov 22 17:57:11 2010 +0100
+++ b/hgext/bookmarks.py	Mon Nov 22 18:15:58 2010 +0100
@@ -137,7 +137,7 @@
         write(repo)
         return
 
-    if mark != None:
+    if mark is not None:
         if "\n" in mark:
             raise util.Abort(_("bookmark name cannot contain newlines"))
         mark = mark.strip()