mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
nmbug-status: replace __values__() with values() in OrderedDict stub
Python dict() object does not have __values__() function which OrderedDict().values() (the stub provided in nmbug-status) could call to provide ordered list of values. By renaming this thinko to values() will make our stub work as expected -- dict items listed out in order those were added to the dictionary.
This commit is contained in:
parent
7c0a1b4d60
commit
18d71908b2
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ if not hasattr(collections, 'OrderedDict'): # Python 2.6 or earlier
|
||||||
super(_OrderedDict, self).__setitem__(key, value)
|
super(_OrderedDict, self).__setitem__(key, value)
|
||||||
self._keys.append(key)
|
self._keys.append(key)
|
||||||
|
|
||||||
def __values__(self):
|
def values(self):
|
||||||
for key in self._keys:
|
for key in self._keys:
|
||||||
yield self[key]
|
yield self[key]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue