summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-03-02 19:49:35 +0000
committerZac Medico <zmedico@gentoo.org>2010-03-02 19:49:35 +0000
commit8104d8a7d3c264bf86254516b71a74c4f2c314fa (patch)
treee2512a620c5014fb7e1ff9ce7ecbc37cd342fdad /pym
parent5717e4d7566ea1afda8031229d5b3de0dc3b0f7e (diff)
downloadportage-8104d8a7d3c264bf86254516b71a74c4f2c314fa.tar.gz
portage-8104d8a7d3c264bf86254516b71a74c4f2c314fa.tar.bz2
portage-8104d8a7d3c264bf86254516b71a74c4f2c314fa.zip
Don't generate DeprecationWarning for portdbapi arguments. Wait until new
portdbapi constructor is in stable portage first. (trunk r15290) svn path=/main/branches/2.1.7/; revision=15529
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/porttree.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 1b5567a8e..452674bb8 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -143,7 +143,7 @@ class portdbapi(dbapi):
def __init__(self, _unused_param=None, mysettings=None):
"""
- @param _unused_param: deprecated
+ @param _unused_param: deprecated, use mysettings['PORTDIR'] instead
@type _unused_param: None
@param mysettings: an immutable config instance
@type mysettings: portage.config
@@ -157,7 +157,8 @@ class portdbapi(dbapi):
from portage import settings
self.mysettings = config(clone=settings)
- if _unused_param is not None:
+ # enable this warning after this parameter is unused in stable portage
+ if False and _unused_param is not None:
warnings.warn("The first parameter of the " + \
"portage.dbapi.porttree.portdbapi" + \
" constructor is now unused. Use " + \