diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-02-22 04:47:25 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-02-22 04:47:25 +0000 |
commit | 24c616a42162793e6bdcda5544a2955a27c4821e (patch) | |
tree | ee1f89e788ec5a3d921cb37db6c57b764408eb35 /pym/portage/data.py | |
parent | 69bec35e43ad2e4d2a6c96a4c23e2355f9293f54 (diff) | |
download | portage-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.py | 9 |
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") |