From cbbab21dfdd9bee79cddaaac12d7ea5890674d81 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 3 Jan 2013 15:04:40 -0800 Subject: Add portage._internal_caller var, and use it. --- pym/portage/dbapi/porttree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym/portage/dbapi') 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: -- cgit v1.2.3-1-g7c22