From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 87A2B1381F3 for ; Tue, 3 Sep 2013 15:51:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6CB63E0F24; Tue, 3 Sep 2013 15:51:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EA43EE0F1B for ; Tue, 3 Sep 2013 15:51:01 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C3E1B33DABC for ; Tue, 3 Sep 2013 15:51:00 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 7BC30E468F for ; Tue, 3 Sep 2013 15:50:59 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1378222962.55bf1d09ba2bcb527cf953276a9c87415ee052a1.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/util/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/util/hashpool.py X-VCS-Directories: roverlay/util/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 55bf1d09ba2bcb527cf953276a9c87415ee052a1 X-VCS-Branch: master Date: Tue, 3 Sep 2013 15:50:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: dc6b6989-8fc2-4f21-a460-01d6b2dd44ef X-Archives-Hash: 164a490aa8c316eab3422cbf6502180b commit: 55bf1d09ba2bcb527cf953276a9c87415ee052a1 Author: André Erdmann mailerd de> AuthorDate: Tue Sep 3 15:42:42 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Tue Sep 3 15:42:42 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=55bf1d09 HashPool: extend() --- roverlay/util/hashpool.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roverlay/util/hashpool.py b/roverlay/util/hashpool.py index 61d8336..29b61f5 100644 --- a/roverlay/util/hashpool.py +++ b/roverlay/util/hashpool.py @@ -83,6 +83,16 @@ class HashPool ( object ): self._jobs [backref] = HashJob ( filepath, hashdict ) # --- end of add (...) --- + def extend ( self, iterable ): + for backref, filepath in iterable: + self._jobs [backref] = HashJob ( filepath, None ) + # --- end of extend (...) --- + + def extend_with_hashdict ( self, iterable ): + for backref, filepath, hashdict in iterable: + self._jobs [backref] = HashJob ( filepath, hashdict ) + # --- end of extend_with_hashdict (...) --- + def get_executor ( self ): return self.executor_cls ( self.max_workers ) # --- end of get_executor (...) ---