Mercurial > hg-stable
changeset 14696:5fb3cb7266e5 stable
config.sortdict: override clear method
Overrides dict.clear. It's not currently used, but was broken for sortdict.
Contributed by Stepan Koltsov <yozh@mx1.ru>
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Mon, 20 Jun 2011 10:51:37 +0200 |
parents | e4d3370fa234 |
children | b1880474e3ad df902fe3d79e |
files | mercurial/config.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/config.py Mon Jun 20 09:30:03 2011 +0200 +++ b/mercurial/config.py Mon Jun 20 10:51:37 2011 +0200 @@ -27,6 +27,9 @@ def update(self, src): for k in src: self[k] = src[k] + def clear(self): + dict.clear(self) + self._list = [] def items(self): return [(k, self[k]) for k in self._list] def __delitem__(self, key):