##// END OF EJS Templates
config.sortdict: override clear method...
Sune Foldager -
r14696:5fb3cb72 stable
parent child Browse files
Show More
@@ -27,6 +27,9 class sortdict(dict):
27 def update(self, src):
27 def update(self, src):
28 for k in src:
28 for k in src:
29 self[k] = src[k]
29 self[k] = src[k]
30 def clear(self):
31 dict.clear(self)
32 self._list = []
30 def items(self):
33 def items(self):
31 return [(k, self[k]) for k in self._list]
34 return [(k, self[k]) for k in self._list]
32 def __delitem__(self, key):
35 def __delitem__(self, key):
General Comments 0
You need to be logged in to leave comments. Login now