From: Zac Medico Date: Sun, 22 Feb 2009 05:29:46 +0000 (-0000) Subject: Use lazyimport to avoid importing the portage.elog module when portage is X-Git-Tag: v2.2_rc24~131 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1ee9c6ff271ff33225d13dd18d1f22c34be205ae;p=portage.git Use lazyimport to avoid importing the portage.elog module when portage is initially imported. svn path=/main/trunk/; revision=12682 --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 0b45f28d6..db05fca6b 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