summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi/porttree.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-09-24 15:03:07 -0700
committerZac Medico <zmedico@gentoo.org>2011-09-24 15:03:07 -0700
commitc495b938fd10295928f455db6391bcdac2031acc (patch)
tree3356c7f07068b5f79edceb410a6115fc0a76da6e /pym/portage/dbapi/porttree.py
parent145d69342301e3a6372a172cfd2eb8069a6a0b3e (diff)
downloadportage-c495b938fd10295928f455db6391bcdac2031acc.tar.gz
portage-c495b938fd10295928f455db6391bcdac2031acc.tar.bz2
portage-c495b938fd10295928f455db6391bcdac2031acc.zip
portdbapi: deprecate unused 'visible' method
Diffstat (limited to 'pym/portage/dbapi/porttree.py')
-rw-r--r--pym/portage/dbapi/porttree.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 62a1e8f55..9a8f50826 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -962,18 +962,17 @@ class portdbapi(dbapi):
def gvisible(self, mylist):
warnings.warn("The 'gvisible' method of "
"portage.dbapi.porttree.portdbapi "
- "is deprecated, and the functionality "
- "has been combined into the 'visible' method",
+ "is deprecated",
DeprecationWarning, stacklevel=2)
- return self.visible(mylist)
+ return list(self._iter_visible(iter(mylist)))
def visible(self, cpv_iter):
- """
- Return a list containing only visible packages.
- """
+ warnings.warn("The 'visible' method of "
+ "portage.dbapi.porttree.portdbapi "
+ "is deprecated",
+ DeprecationWarning, stacklevel=2)
if cpv_iter is None:
return []
-
return list(self._iter_visible(iter(cpv_iter)))
def _iter_visible(self, cpv_iter, myrepo=None):