Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
13030:8ea51e9e7031 | 13031:3da456d0c885 |
---|---|
128 m = unsetre.match(l) | 128 m = unsetre.match(l) |
129 if m: | 129 if m: |
130 name = m.group(1) | 130 name = m.group(1) |
131 if sections and section not in sections: | 131 if sections and section not in sections: |
132 continue | 132 continue |
133 if self.get(section, name) != None: | 133 if self.get(section, name) is not None: |
134 del self._data[section][name] | 134 del self._data[section][name] |
135 continue | 135 continue |
136 | 136 |
137 raise error.ParseError(l.rstrip(), ("%s:%s" % (src, line))) | 137 raise error.ParseError(l.rstrip(), ("%s:%s" % (src, line))) |
138 | 138 |