diff mercurial/util.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 9f2ac318b92e
children 44b26a87f73e
line wrap: on
line diff
--- a/mercurial/util.py	Mon Nov 22 17:57:11 2010 +0100
+++ b/mercurial/util.py	Mon Nov 22 18:15:58 2010 +0100
@@ -1054,7 +1054,7 @@
 
     # NOTE: unixtime = localunixtime + offset
     offset, date = timezone(string), string
-    if offset != None:
+    if offset is not None:
         date = " ".join(string.split()[:-1])
 
     # add missing elements from defaults