summaryrefslogtreecommitdiffstats
path: root/pym/portage/elog/messages.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-02-22 04:47:25 +0000
committerZac Medico <zmedico@gentoo.org>2009-02-22 04:47:25 +0000
commit24c616a42162793e6bdcda5544a2955a27c4821e (patch)
treeee1f89e788ec5a3d921cb37db6c57b764408eb35 /pym/portage/elog/messages.py
parent69bec35e43ad2e4d2a6c96a4c23e2355f9293f54 (diff)
downloadportage-24c616a42162793e6bdcda5544a2955a27c4821e.tar.gz
portage-24c616a42162793e6bdcda5544a2955a27c4821e.tar.bz2
portage-24c616a42162793e6bdcda5544a2955a27c4821e.zip
Use lazyimport to avoid importing the checksum, locks, and util modules
when portage is initially imported. svn path=/main/trunk/; revision=12680
Diffstat (limited to 'pym/portage/elog/messages.py')
-rw-r--r--pym/portage/elog/messages.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pym/portage/elog/messages.py b/pym/portage/elog/messages.py
index a09b73229..f171f2956 100644
--- a/pym/portage/elog/messages.py
+++ b/pym/portage/elog/messages.py
@@ -1,11 +1,15 @@
# elog/messages.py - elog core functions
-# Copyright 2006-2007 Gentoo Foundation
+# Copyright 2006-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
+import portage
+portage.proxy.lazyimport.lazyimport(globals(),
+ 'portage.util:writemsg',
+)
+
from portage.output import colorize
from portage.const import EBUILD_PHASES
-from portage.util import writemsg
import os
import sys