diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-07-28 23:01:19 -0400 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-07-28 23:06:13 -0400 |
commit | 73ae235a69d1eb2d6945003a3f7326409cfa773c (patch) | |
tree | cc78497f1782d29bc817690b10e605d2b442b965 /classes | |
parent | e4bd88b99adbdd70b1f4bb06b887383b8e1701f4 (diff) |
sanity.bbclass: kill usage of 'print'
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/sanity.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
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(): |