commit:     a2cfac95bbf8577c4f516ab5e7e74698185e2829
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 22 19:13:38 2025 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu Nov 27 05:16:24 2025 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=a2cfac95

elog/__init__.py: Replace lazyimport with function local import

Bug: https://bugs.gentoo.org/951146
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 lib/portage/elog/__init__.py | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/lib/portage/elog/__init__.py b/lib/portage/elog/__init__.py
index 2d835ddb11..028ac6c75d 100644
--- a/lib/portage/elog/__init__.py
+++ b/lib/portage/elog/__init__.py
@@ -1,15 +1,8 @@
 # elog/__init__.py - elog core functions
-# Copyright 2006-2020 Gentoo Authors
+# Copyright 2006-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 
-import portage
-
-portage.proxy.lazyimport.lazyimport(
-    globals(),
-    "portage.util:writemsg",
-)
-
 from portage.const import EBUILD_PHASES
 from portage.exception import AlarmSignal, PortageException
 from portage.process import atexit_register
@@ -104,6 +97,8 @@ _elog_atexit_handlers = []
 
 
 def elog_process(cpv, mysettings, phasefilter=None):
+    from portage.util import writemsg
+
     global _elog_atexit_handlers
 
     logsystems = mysettings.get("PORTAGE_ELOG_SYSTEM", "").split()

Reply via email to