public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoopm:master commit in: gentoopm/
Date: Sun, 10 Jul 2011 12:34:52 +0000 (UTC)	[thread overview]
Message-ID: <23dd108ddb00cdbe228118b32e195294f7e79d96.mgorny@gentoo> (raw)

commit:     23dd108ddb00cdbe228118b32e195294f7e79d96
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 10 11:23:52 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul 10 11:23:52 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoopm.git;a=commit;h=23dd108d

Make some of core vars private.

---
 gentoopm/querycli.py   |    4 ++--
 gentoopm/submodules.py |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gentoopm/querycli.py b/gentoopm/querycli.py
index e1ea091..acf1214 100644
--- a/gentoopm/querycli.py
+++ b/gentoopm/querycli.py
@@ -9,7 +9,7 @@ from abc import abstractmethod
 from gentoopm import get_package_manager
 from gentoopm.util import ABCObject
 
-def reponame(val):
+def _reponame(val):
 	"""
 	Check the value for correctness as repository name. In fact, it only ensures
 	it isn't a path so that it won't confuse pm.repositories[val].
@@ -87,7 +87,7 @@ class PMQueryCommands(object):
 		"""
 		def __init__(self, argparser):
 			PMQueryCommand.__init__(self, argparser)
-			argparser.add_argument('repo_name', type=reponame,
+			argparser.add_argument('repo_name', type=_reponame,
 				help='The repository name to look up')
 
 		def __call__(self, pm, args):

diff --git a/gentoopm/submodules.py b/gentoopm/submodules.py
index 82945bf..95840e4 100644
--- a/gentoopm/submodules.py
+++ b/gentoopm/submodules.py
@@ -3,7 +3,7 @@
 # (c) 2011 Michał Górny <mgorny@gentoo.org>
 # Released under the terms of the 2-clause BSD license.
 
-supported_pms = {
+_supported_pms = {
 	'paludis': ('gentoopm.paludispm', 'PaludisPM'),
 	'pkgcore': ('gentoopm.pkgcorepm', 'PkgCorePM'),
 	'portage': ('gentoopm.portagepm', 'PortagePM')
@@ -22,7 +22,7 @@ def get_pm(pm_name):
 	@raise NameError: PM class is not available
 	"""
 
-	modname, clsname = supported_pms[pm_name]
+	modname, clsname = _supported_pms[pm_name]
 	mod = __import__(modname, fromlist=[clsname], level=-1)
 	return getattr(mod, clsname)()
 



             reply	other threads:[~2011-07-10 12:35 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-10 12:34 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-07-10 12:34 [gentoo-commits] proj/gentoopm:master commit in: gentoopm/ Michał Górny
2011-07-10 12:34 Michał Górny
2011-07-17 13:58 Michał Górny
2011-07-17 22:19 Michał Górny
2011-07-19 12:07 Michał Górny
2011-07-20 18:30 Michał Górny
2011-07-21 23:00 Michał Górny
2011-07-21 23:00 Michał Górny
2011-07-21 23:00 Michał Górny
2011-07-22 13:16 Michał Górny
2011-07-23  9:27 Michał Górny
2011-07-27  8:26 Michał Górny
2011-07-29  6:18 Michał Górny
2011-08-12  7:28 Michał Górny
2011-08-12  8:24 Michał Górny
2011-08-12  8:24 Michał Górny
2011-08-12  8:53 Michał Górny
2011-08-12  9:28 Michał Górny
2011-08-12 20:07 Michał Górny
2011-08-12 21:10 Michał Górny
2011-08-13 10:31 Michał Górny
2011-08-13 10:31 Michał Górny
2011-08-13 10:31 Michał Górny
2011-08-13 18:49 Michał Górny
2011-08-13 18:49 Michał Górny
2011-08-13 18:49 Michał Górny
2011-08-15  8:48 Michał Górny
2011-08-15 16:00 Michał Górny
2011-08-23 20:39 Michał Górny
2011-09-09 21:13 Michał Górny
2011-11-14 21:44 Michał Górny
2011-11-15 18:58 Michał Górny
2011-12-24 10:36 Michał Górny
2012-01-09 16:09 Michał Górny
2012-10-14 21:35 Michał Górny
2012-12-10 21:04 Michał Górny
2013-02-16 11:42 Michał Górny
2013-08-08 23:02 Michał Górny

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=23dd108ddb00cdbe228118b32e195294f7e79d96.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --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