From: Zac Medico Date: Tue, 7 Sep 2010 19:40:02 +0000 (-0700) Subject: Make the deprecation warning for the first pordbapi constructor X-Git-Tag: v2.2_rc78~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b7be0b42ccfee6c30e7bcd6f4427aeafa67f4791;p=portage.git Make the deprecation warning for the first pordbapi constructor parameter quiet for now, to give people a wider migration window. --- 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. " + \