summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2013-01-03 15:04:40 -0800
committerZac Medico <zmedico@gentoo.org>2013-01-03 15:04:40 -0800
commitcbbab21dfdd9bee79cddaaac12d7ea5890674d81 (patch)
treea1b5a51ee92419e30528ec416892b1139ef24e7e /pym/portage/dbapi
parent400a2a983b374ec54e7b574789d1f94752581b81 (diff)
downloadportage-cbbab21dfdd9bee79cddaaac12d7ea5890674d81.tar.gz
portage-cbbab21dfdd9bee79cddaaac12d7ea5890674d81.tar.bz2
portage-cbbab21dfdd9bee79cddaaac12d7ea5890674d81.zip
Add portage._internal_caller var, and use it.
Diffstat (limited to 'pym/portage/dbapi')
-rw-r--r--pym/portage/dbapi/porttree.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index ebb1be87a..d8cd261b4 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -1,4 +1,4 @@
-# Copyright 1998-2012 Gentoo Foundation
+# Copyright 1998-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
__all__ = [
@@ -197,7 +197,7 @@ class portdbapi(dbapi):
@property
def _event_loop(self):
- if portage._internal_warnings:
+ if portage._internal_caller:
# For internal portage usage, the global_event_loop is safe.
return global_event_loop()
else: