diff mercurial/config.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 037d910734de
children 53db4e2026ab
line wrap: on
line diff
--- a/mercurial/config.py	Mon Nov 22 17:57:11 2010 +0100
+++ b/mercurial/config.py	Mon Nov 22 18:15:58 2010 +0100
@@ -130,7 +130,7 @@
                 name = m.group(1)
                 if sections and section not in sections:
                     continue
-                if self.get(section, name) != None:
+                if self.get(section, name) is not None:
                     del self._data[section][name]
                 continue