sanity.bbclass: kill usage of 'print'
authorChris Larson <chris_larson@mentor.com>
Thu, 29 Jul 2010 03:01:19 +0000 (23:01 -0400)
committerChris Larson <chris_larson@mentor.com>
Thu, 29 Jul 2010 03:06:13 +0000 (23:06 -0400)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
classes/sanity.bbclass

index 1fd5fbb..575530a 100644 (file)
@@ -30,7 +30,9 @@ def check_sanity(e):
        try:
                from distutils.version import LooseVersion
        except ImportError:
-               def LooseVersion(v): print "WARNING: sanity.bbclass can't compare versions without python-distutils"; return 1
+               def LooseVersion(v):
+                       bb.msg.warn(None, "sanity.bbclass can't compare versions without python-distutils")
+                       return 1
        import commands
 
        # Check the bitbake version meets minimum requirements
@@ -38,7 +40,6 @@ def check_sanity(e):
        if not minversion:
                # Hack: BB_MIN_VERSION hasn't been parsed yet so return 
                # and wait for the next call
-               print "Foo %s" % minversion
                return
 
        if 0 == os.getuid():