Opened 8 years ago

Closed 8 years ago

#6627 closed (fixed)

clear method of SortedDict doesn't update keyOrder

Reported by: samuel@… Owned by: nobody
Component: Uncategorized Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:


Calling the "clear" method of SortedDict doesn't clear the keyOrder list. Quick fix though:

def clear(self):
    super(SortedDict, self).clear()
    self.keyOrder = []

Change History (1)

comment:1 Changed 8 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(In [7140]) Fixed #6627 -- Made dict.clear() work for SortedDicts.

Note: See TracTickets for help on using tickets.
Back to Top