summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-03-02 20:47:04 +0000
committerZac Medico <zmedico@gentoo.org>2010-03-02 20:47:04 +0000
commit59aefe184174765de977498f78785f966f2c371d (patch)
tree191be15641da8fb7c6ece94879718192e78162a3 /pym
parent4233d85cea9b7fd682f66be21e450f45d2c782d1 (diff)
downloadportage-59aefe184174765de977498f78785f966f2c371d.tar.gz
portage-59aefe184174765de977498f78785f966f2c371d.tar.bz2
portage-59aefe184174765de977498f78785f966f2c371d.zip
Add stacklevel=2 to warnings.warn calls. (trunk r15406)
svn path=/main/branches/2.1.7/; revision=15628
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/bintree.py2
-rw-r--r--pym/portage/dbapi/porttree.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index 6f164ccb9..ce162fccb 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -457,7 +457,7 @@ class binarytree(object):
warnings.warn(
"portage.dbapi.bintree.binarytree.populate(): " + \
"getbinpkgsonly parameter is deprecated",
- DeprecationWarning)
+ DeprecationWarning, stacklevel=2)
if self._populating:
return
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index f40d94d0b..7cae96796 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -171,7 +171,7 @@ class portdbapi(dbapi):
"portage.dbapi.porttree.portdbapi" + \
" constructor is now unused. Use " + \
"mysettings['PORTDIR'] instead.",
- DeprecationWarning)
+ DeprecationWarning, stacklevel=2)
# This is strictly for use in aux_get() doebuild calls when metadata
# is generated by the depend phase. It's safest to use a clone for