Use lazyimport to avoid importing the portage.elog module when portage is
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 06:10:55 +0000 (06:10 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 06:10:55 +0000 (06:10 -0000)
initially imported. (trunk r12682)

svn path=/main/branches/2.1.6/; revision=12942

pym/portage/dbapi/vartree.py

index 8ad88f179322f75bb8130aff4aedea2782f34fa8..5f12715d388e1e34fcccef5a3162d45dc2967135 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