diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-07 12:40:02 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-07 12:40:02 -0700 |
commit | b7be0b42ccfee6c30e7bcd6f4427aeafa67f4791 (patch) | |
tree | cda3c83ff98972f4c906dd5e1918a7fb716812c5 | |
parent | ec413a1507109740dd53e8ad70899b41ed0e88f0 (diff) | |
download | portage-b7be0b42ccfee6c30e7bcd6f4427aeafa67f4791.tar.gz portage-b7be0b42ccfee6c30e7bcd6f4427aeafa67f4791.tar.bz2 portage-b7be0b42ccfee6c30e7bcd6f4427aeafa67f4791.zip |
Make the deprecation warning for the first pordbapi constructor
parameter quiet for now, to give people a wider migration window.
-rw-r--r-- | pym/portage/dbapi/porttree.py | 2 |
1 files changed, 1 insertions, 1 deletions
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. " + \ |