]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
Move compat imports in the bb package to avoid circular dep issues.
authorChris Larson <clarson@kergoth.com>
Sun, 19 Jul 2009 16:54:46 +0000 (09:54 -0700)
committerChris Larson <chris_larson@mentor.com>
Fri, 19 Feb 2010 18:04:40 +0000 (11:04 -0700)
Signed-off-by: Chris Larson <clarson@kergoth.com>
lib/bb/__init__.py

index de5f0321fa2d046df2f771bfaaa05c552945b9d1..84116f4f6a87a11beaedf91b4b447026ef5886ad 100644 (file)
@@ -80,11 +80,6 @@ if "BBDEBUG" in os.environ:
     if level:
         bb.msg.set_debug_level(level)
 
-# For compatibility
-from bb.fetch import MalformedUrl, encodeurl, decodeurl
-from bb.data import VarExpandError
-
-
 #######################################################################
 #######################################################################
 #
@@ -1019,6 +1014,10 @@ def dep_opconvert(mysplit, myuse):
             mypos += 1
     return newsplit
 
+# For compatibility
+from bb.fetch import MalformedUrl, encodeurl, decodeurl
+from bb.data import VarExpandError
+
 if __name__ == "__main__":
     import doctest, bb
     bb.msg.set_debug_level(0)