Mercurial > public > mercurial-scm > hg
diff mercurial/context.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 | cc4e13c92dfa |
children | 6c375e07d673 |
line wrap: on
line diff
--- a/mercurial/context.py Mon Nov 22 17:57:11 2010 +0100 +++ b/mercurial/context.py Mon Nov 22 18:15:58 2010 +0100 @@ -179,7 +179,7 @@ """ # deal with workingctxs n2 = c2._node - if n2 == None: + if n2 is None: n2 = c2._parents[0]._node n = self._repo.changelog.ancestor(self._node, n2) return changectx(self._repo, n)