From 5e44890ea6b9f5e808ec2e59ed93555689e1cde7 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Tue, 18 Feb 2014 20:34:52 +0200 Subject: [PATCH] [PATCH 1/1] nmbug-status: replace __values__() with values() in OrderedDict stub --- 30/5c646e9a83a0a39140e87354b81fdf4abb0df7 | 68 +++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 30/5c646e9a83a0a39140e87354b81fdf4abb0df7 diff --git a/30/5c646e9a83a0a39140e87354b81fdf4abb0df7 b/30/5c646e9a83a0a39140e87354b81fdf4abb0df7 new file mode 100644 index 000000000..392754864 --- /dev/null +++ b/30/5c646e9a83a0a39140e87354b81fdf4abb0df7 @@ -0,0 +1,68 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 0AF8C431FBF + for ; Tue, 18 Feb 2014 10:35:05 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id EAtH39qPEHn2 for ; + Tue, 18 Feb 2014 10:35:01 -0800 (PST) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id 933F3431FBD + for ; Tue, 18 Feb 2014 10:35:01 -0800 (PST) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id 55FC5100063; Tue, 18 Feb 2014 20:34:53 +0200 (EET) +From: Tomi Ollila +To: notmuch@notmuchmail.org +Subject: [PATCH 1/1] nmbug-status: replace __values__() with values() in + OrderedDict stub +Date: Tue, 18 Feb 2014 20:34:52 +0200 +Message-Id: <1392748492-29341-1-git-send-email-tomi.ollila@iki.fi> +X-Mailer: git-send-email 1.8.0 +Cc: tomi.ollila@iki.fi +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 18 Feb 2014 18:35:05 -0000 + +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(-) + +diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status +index ef7169a..6b2572c 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] + +-- +1.8.0 + -- 2.26.2