From f74f7597a36799a040f64300ea6d9d3363137700 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 06:10:55 +0000 Subject: [PATCH] Use lazyimport to avoid importing the portage.elog module when portage is initially imported. (trunk r12682) svn path=/main/branches/2.1.6/; revision=12942 --- pym/portage/dbapi/vartree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 8ad88f179..5f12715d3 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -11,6 +11,8 @@ portage.proxy.lazyimport.lazyimport(globals(), 'portage.checksum:perform_md5', 'portage.dep:dep_getkey,isjustname,isvalidatom,match_from_list,' + \ 'use_reduce,paren_reduce', + 'portage.elog:elog_process', + 'portage.elog.filtering:filter_mergephases,filter_unmergephases', 'portage.locks:lockdir,unlockdir', 'portage.output:bold,colorize', 'portage.update:fixdbentries', @@ -32,8 +34,6 @@ from portage import listdir, dep_expand, digraph, flatten, key_expand, \ doebuild_environment, doebuild, env_update, prepare_build_dirs, \ abssymlink, movefile, _movefile, bsd_chflags, cpv_getkey -from portage.elog import elog_process -from portage.elog.filtering import filter_mergephases, filter_unmergephases from portage.cache.mappings import slot_dict_class import os, re, shutil, stat, errno, copy, subprocess -- 2.26.2