aboutsummaryrefslogtreecommitdiff
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/data.py
parentFix _LazyImportFrom to use the correct module name when registering and (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/data.py')
-rw-r--r--pym/portage/data.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/pym/portage/data.py b/pym/portage/data.py
index a7ebd9cb3..a8ddf8250 100644
--- a/pym/portage/data.py
+++ b/pym/portage/data.py
@@ -1,10 +1,15 @@
# data.py -- Calculated/Discovered Data Values
-# Copyright 1998-2004 Gentoo Foundation
+# Copyright 1998-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
import os, sys, pwd, grp, platform
-from portage.util import writemsg
+
+import portage
+portage.proxy.lazyimport.lazyimport(globals(),
+ 'portage.util:writemsg',
+)
+
from portage.output import colorize
from portage.output import create_color_func
bad = create_color_func("BAD")