Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r15406 - main/trunk/pym/portage/dbapi
Date: Fri, 19 Feb 2010 22:55:59
Message-Id: E1NiblJ-0001ap-7X@stork.gentoo.org
1 Author: zmedico
2 Date: 2010-02-19 22:55:52 +0000 (Fri, 19 Feb 2010)
3 New Revision: 15406
4
5 Modified:
6 main/trunk/pym/portage/dbapi/bintree.py
7 main/trunk/pym/portage/dbapi/porttree.py
8 Log:
9 Add stacklevel=2 to warnings.warn calls.
10
11
12 Modified: main/trunk/pym/portage/dbapi/bintree.py
13 ===================================================================
14 --- main/trunk/pym/portage/dbapi/bintree.py 2010-02-19 22:14:57 UTC (rev 15405)
15 +++ main/trunk/pym/portage/dbapi/bintree.py 2010-02-19 22:55:52 UTC (rev 15406)
16 @@ -457,7 +457,7 @@
17 warnings.warn(
18 "portage.dbapi.bintree.binarytree.populate(): " + \
19 "getbinpkgsonly parameter is deprecated",
20 - DeprecationWarning)
21 + DeprecationWarning, stacklevel=2)
22
23 if self._populating:
24 return
25
26 Modified: main/trunk/pym/portage/dbapi/porttree.py
27 ===================================================================
28 --- main/trunk/pym/portage/dbapi/porttree.py 2010-02-19 22:14:57 UTC (rev 15405)
29 +++ main/trunk/pym/portage/dbapi/porttree.py 2010-02-19 22:55:52 UTC (rev 15406)
30 @@ -171,7 +171,7 @@
31 "portage.dbapi.porttree.portdbapi" + \
32 " constructor is now unused. Use " + \
33 "mysettings['PORTDIR'] instead.",
34 - DeprecationWarning)
35 + DeprecationWarning, stacklevel=2)
36
37 # This is strictly for use in aux_get() doebuild calls when metadata
38 # is generated by the depend phase. It's safest to use a clone for