From c83131e33c4c0138033c439da91fd3e257a75c1a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 22 Sep 2011 19:29:53 -0700 Subject: portdbapi.xmatch: deprecate list-visible --- pym/portage/dbapi/porttree.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pym') 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: -- cgit v1.2.3-1-g7c22