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 B82B1138BF3 for ; Sun, 16 Feb 2014 16:30:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 977EFE0ABF; Sun, 16 Feb 2014 16:30:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F152BE0ABD for ; Sun, 16 Feb 2014 16:30:08 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7DE2733F8BA for ; Sun, 16 Feb 2014 16:30:07 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id D9EB5188CA for ; Sun, 16 Feb 2014 16:30:05 +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: <1392568064.8a191aee34c82c223612d3c3a158f76258f1147c.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/util/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/util/counter.py X-VCS-Directories: roverlay/util/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 8a191aee34c82c223612d3c3a158f76258f1147c X-VCS-Branch: master Date: Sun, 16 Feb 2014 16:30:05 +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: 98e9eb6b-962a-46eb-ab5a-8ca42c3c5ab1 X-Archives-Hash: 2e7fb0f9a933076507f30ad2729ce377 commit: 8a191aee34c82c223612d3c3a158f76258f1147c Author: André Erdmann mailerd de> AuthorDate: Sun Feb 16 16:24:19 2014 +0000 Commit: André Erdmann mailerd de> CommitDate: Sun Feb 16 16:27:44 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=8a191aee roverlay/util/counter: be compatible with python 2 Fixes d95efe157ea2a9e02eac805ae41fd340ac5e117c --- roverlay/util/counter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roverlay/util/counter.py b/roverlay/util/counter.py index 2303863..0fde45e 100644 --- a/roverlay/util/counter.py +++ b/roverlay/util/counter.py @@ -65,6 +65,11 @@ class AbstractCounter ( object ): return self.inc() # --- end of __next__ (...) --- + def next ( self ): + # python 2 + return self.__next__() + # --- end of next (...) --- + def __iter__ ( self ): return self # --- end of __iter__ (...) ---