dep.__init__: move writemsg import to top
authorZac Medico <zmedico@gentoo.org>
Sun, 22 Apr 2012 21:41:03 +0000 (14:41 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 22 Apr 2012 21:41:03 +0000 (14:41 -0700)
pym/portage/dep/__init__.py

index 3832b0bdeecb3ca5b922580eda2f3376a9c2c971..0a7fc5764f7b4921c983d4e3768b3e84d980f850 100644 (file)
@@ -33,7 +33,7 @@ from itertools import chain
 
 import portage
 portage.proxy.lazyimport.lazyimport(globals(),
-       'portage.util:cmp_sort_key',
+       'portage.util:cmp_sort_key,writemsg',
 )
 
 from portage import _unicode_decode
@@ -1882,7 +1882,6 @@ def match_from_list(mydep, candidate_list):
        if not candidate_list:
                return []
 
-       from portage.util import writemsg
        if "!" == mydep[:1]:
                if "!" == mydep[1:2]:
                        mydep = mydep[2:]