From 73ae235a69d1eb2d6945003a3f7326409cfa773c Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Wed, 28 Jul 2010 23:01:19 -0400 Subject: sanity.bbclass: kill usage of 'print' Signed-off-by: Chris Larson --- classes/sanity.bbclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'classes/sanity.bbclass') diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass index 1fd5fbb216..575530aa84 100644 --- a/classes/sanity.bbclass +++ b/classes/sanity.bbclass @@ -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(): -- cgit 1.2.3-korg