From: "Brian Dolbec" <brian.dolbec@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/
Date: Fri, 25 Feb 2011 02:23:29 +0000 (UTC) [thread overview]
Message-ID: <01083994795dec1ca6c366ea7a494364ce4e15f8.dol-sen@gentoo> (raw)
commit: 01083994795dec1ca6c366ea7a494364ce4e15f8
Author: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
AuthorDate: Fri Feb 25 02:06:04 2011 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Fri Feb 25 02:06:04 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=01083994
decorate some functions as @staticmethod
---
| 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
--git a/pym/gentoolkit/eshowkw/keywords_header.py b/pym/gentoolkit/eshowkw/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 = [ 'unused', 'slot' ]
__EXTRA_FIELDS = [ 'repo' ]
- def __readKeywords(self):
+ @staticmethod
+ def __readKeywords():
"""Read all available keywords from portage."""
return [x for x in ports.archlist()
if not x.startswith('~')]
- def __sortKeywords(self, keywords, prefix = False, required_keywords = []):
+ @staticmethod
+ def __sortKeywords(keywords, prefix = False, required_keywords = []):
"""Sort keywords with short archs first"""
# user specified only some keywords to display
if len(required_keywords) != 0:
@@ -62,7 +64,8 @@ class keywords_header:
tmp.append(keyword)
return tmp
- 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 and coloring
return ['%'.join(align_string(x, align, length)) for x in additional]
next reply other threads:[~2011-02-25 2:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-25 2:23 Brian Dolbec [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-08-09 20:14 [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/ Michał Górny
2012-05-16 21:59 Paul Varner
2012-05-08 21:06 Paul Varner
2012-04-11 15:01 Paul Varner
2011-05-29 10:59 Christian Ruppert
2011-05-16 16:40 Brian Dolbec
2011-02-25 2:23 Brian Dolbec
2011-02-24 21:49 Christian Ruppert
2011-02-24 21:41 Christian Ruppert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=01083994795dec1ca6c366ea7a494364ce4e15f8.dol-sen@gentoo \
--to=brian.dolbec@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox