From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PsnLH-0002NN-AL for garchives@archives.gentoo.org; Fri, 25 Feb 2011 02:23:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3A9F31C001; Fri, 25 Feb 2011 02:23:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id EC9711C001 for ; Fri, 25 Feb 2011 02:23:30 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5B9971B41B1 for ; Fri, 25 Feb 2011 02:23:30 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id B9F828006E for ; Fri, 25 Feb 2011 02:23:29 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <01083994795dec1ca6c366ea7a494364ce4e15f8.dol-sen@gentoo> Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: pym/gentoolkit/eshowkw/keywords_header.py X-VCS-Directories: pym/gentoolkit/eshowkw/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 01083994795dec1ca6c366ea7a494364ce4e15f8 Date: Fri, 25 Feb 2011 02:23:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: d48fa02f5784ae50cf9e0156ce1bd6f4 commit: 01083994795dec1ca6c366ea7a494364ce4e15f8 Author: Brian Dolbec gmail com> AuthorDate: Fri Feb 25 02:06:04 2011 +0000 Commit: Brian Dolbec gmail com> CommitDate: Fri Feb 25 02:06:04 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoolkit.gi= t;a=3Dcommit;h=3D01083994 decorate some functions as @staticmethod --- pym/gentoolkit/eshowkw/keywords_header.py | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pym/gentoolkit/eshowkw/keywords_header.py b/pym/gentoolkit/e= showkw/keywords_header.py index 1d52749..23588a4 100644 --- a/pym/gentoolkit/eshowkw/keywords_header.py +++ b/pym/gentoolkit/eshowkw/keywords_header.py @@ -14,12 +14,14 @@ class keywords_header: __ADDITIONAL_FIELDS =3D [ 'unused', 'slot' ] __EXTRA_FIELDS =3D [ 'repo' ] =20 - def __readKeywords(self): + @staticmethod + def __readKeywords(): """Read all available keywords from portage.""" return [x for x in ports.archlist() if not x.startswith('~')] =20 - def __sortKeywords(self, keywords, prefix =3D False, required_keywords = =3D []): + @staticmethod + def __sortKeywords(keywords, prefix =3D False, required_keywords =3D []= ): """Sort keywords with short archs first""" # user specified only some keywords to display if len(required_keywords) !=3D 0: @@ -62,7 +64,8 @@ class keywords_header: tmp.append(keyword) return tmp =20 - def __formatAdditional(self, additional, align, length): + @staticmethod + def __formatAdditional(additional, align, length): """Align additional items properly""" # % are used as separators for further split so we wont loose spaces a= nd coloring return ['%'.join(align_string(x, align, length)) for x in additional]