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 1QftDz-0005rx-4B for garchives@archives.gentoo.org; Sun, 10 Jul 2011 12:35:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CDECC21C05E; Sun, 10 Jul 2011 12:34:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 9F25421C07B for ; Sun, 10 Jul 2011 12:34:54 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1F0DB1B4060 for ; Sun, 10 Jul 2011 12:34:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id EF7DC8004A for ; Sun, 10 Jul 2011 12:34:52 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <23dd108ddb00cdbe228118b32e195294f7e79d96.mgorny@gentoo> Subject: [gentoo-commits] proj/gentoopm:master commit in: gentoopm/ X-VCS-Repository: proj/gentoopm X-VCS-Files: gentoopm/querycli.py gentoopm/submodules.py X-VCS-Directories: gentoopm/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 23dd108ddb00cdbe228118b32e195294f7e79d96 Date: Sun, 10 Jul 2011 12:34:52 +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: b55e89a447277df9ece0b154befa58f7 commit: 23dd108ddb00cdbe228118b32e195294f7e79d96 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Sun Jul 10 11:23:52 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Sun Jul 10 11:23:52 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoopm.git;= a=3Dcommit;h=3D23dd108d 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 =20 -def reponame(val): +def _reponame(val): """ Check the value for correctness as repository name. In fact, it only en= sures 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=3Dreponame, + argparser.add_argument('repo_name', type=3D_reponame, help=3D'The repository name to look up') =20 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=C5=82 G=C3=B3rny # Released under the terms of the 2-clause BSD license. =20 -supported_pms =3D { +_supported_pms =3D { '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 """ =20 - modname, clsname =3D supported_pms[pm_name] + modname, clsname =3D _supported_pms[pm_name] mod =3D __import__(modname, fromlist=3D[clsname], level=3D-1) return getattr(mod, clsname)() =20