summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-09-22 19:29:53 -0700
committerZac Medico <zmedico@gentoo.org>2011-09-22 19:29:53 -0700
commitc83131e33c4c0138033c439da91fd3e257a75c1a (patch)
tree3b158c54c6535b99132cab47148e662c1e558840 /pym
parent5c0f7b06a0b7f6461b3d38ea5a7c261d767fd82b (diff)
downloadportage-c83131e33c4c0138033c439da91fd3e257a75c1a.tar.gz
portage-c83131e33c4c0138033c439da91fd3e257a75c1a.tar.bz2
portage-c83131e33c4c0138033c439da91fd3e257a75c1a.zip
portdbapi.xmatch: deprecate list-visible
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/porttree.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 4f5dc78d4..eb7e36a96 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -811,6 +811,11 @@ class portdbapi(dbapi):
"caching match function; very trick stuff"
if level == "list-visible":
level = "match-visible"
+ warnings.warn("The 'list-visible' mode of "
+ "portage.dbapi.porttree.portdbapi.xmatch "
+ "has been renamed to match-visible",
+ DeprecationWarning, stacklevel=2)
+
#if no updates are being made to the tree, we can consult our xcache...
if self.frozen:
try: