Add stacklevel=2 to warnings.warn calls.

svn path=/main/trunk/; revision=15406
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index 6f164cc..ce162fc 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -457,7 +457,7 @@
 			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 f40d94d..7cae967 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -171,7 +171,7 @@
 				"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