[oe-commits] Chris Larson : sanity.bbclass: kill usage of 'print'

git version control git at git.openembedded.org
Thu Jul 29 03:06:30 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 73ae235a69d1eb2d6945003a3f7326409cfa773c
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=73ae235a69d1eb2d6945003a3f7326409cfa773c

Author: Chris Larson <chris_larson at mentor.com>
Date:   Wed Jul 28 23:01:19 2010 -0400

sanity.bbclass: kill usage of 'print'

Signed-off-by: Chris Larson <chris_larson at mentor.com>

---

 classes/sanity.bbclass |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index 1fd5fbb..575530a 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():





More information about the Openembedded-commits mailing list