Use lazyimport to avoid importing the portage.elog module when portage is
authorZac Medico <zmedico@gentoo.org>
Sun, 22 Feb 2009 05:29:46 +0000 (05:29 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 22 Feb 2009 05:29:46 +0000 (05:29 -0000)
initially imported.

svn path=/main/trunk/; revision=12682

pym/portage/dbapi/vartree.py

index 0b45f28d667a4521c3e9abe1489ac45fcf18fcf3..db05fca6bee256aa7387e41206a217d126ab8777 100644 (file)
@@ -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