Opened 18 years ago
Closed 18 years ago
#6627 closed (fixed)
clear method of SortedDict doesn't update keyOrder
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Uncategorized | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Calling the "clear" method of SortedDict doesn't clear the keyOrder list. Quick fix though:
def clear(self):
super(SortedDict, self).clear()
self.keyOrder = []
Note:
See TracTickets
for help on using tickets.
(In [7140]) Fixed #6627 -- Made dict.clear() work for SortedDicts.