diff options
author | Tomi Ollila <tomi.ollila@iki.fi> | 2014-02-18 20:34:52 +0200 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2014-02-21 21:12:45 -0400 |
commit | 18d71908b2d2d5843d38ec94cf2daf5f1e8ecd29 (patch) | |
tree | b311aa17e2ec6f7b95d4d090766f98d04f87888c /devel | |
parent | 7c0a1b4d602fa0ff612ffcd7a463d11764a4ea09 (diff) |
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.
Diffstat (limited to 'devel')
-rwxr-xr-x | devel/nmbug/nmbug-status | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status index ef7169a6..6b2572c1 100755 --- a/devel/nmbug/nmbug-status +++ b/devel/nmbug/nmbug-status @@ -41,7 +41,7 @@ if not hasattr(collections, 'OrderedDict'): # Python 2.6 or earlier super(_OrderedDict, self).__setitem__(key, value) self._keys.append(key) - def __values__(self): + def values(self): for key in self._keys: yield self[key] |