From b7be0b42ccfee6c30e7bcd6f4427aeafa67f4791 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 7 Sep 2010 12:40:02 -0700 Subject: Make the deprecation warning for the first pordbapi constructor parameter quiet for now, to give people a wider migration window. --- pym/portage/dbapi/porttree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 1169024b8..b9f3e8cc8 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -84,7 +84,7 @@ class portdbapi(dbapi): porttree_root = self.settings['PORTDIR'] - if _unused_param is not None: + if _unused_param is not None and _unused_param != porttree_root: warnings.warn("The first parameter of the " + \ "portage.dbapi.porttree.portdbapi" + \ " constructor is now unused. " + \ -- cgit v1.2.3-1-g7c22