From 18d71908b2d2d5843d38ec94cf2daf5f1e8ecd29 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Tue, 18 Feb 2014 20:34:52 +0200 Subject: 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. --- devel/nmbug/nmbug-status | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'devel') 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] -- cgit v1.2.3