aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-07 13:55:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-09 14:04:18 +0100
commit754874e68d1037c76fc4cc7d35d3fa12946d00f8 (patch)
tree388b49f9cd24d1ed8574bca955e92a6532844056 /meta/classes/sanity.bbclass
parentdde7af5f6c769eae721b1ee18462b841c8ea3277 (diff)
downloadopenembedded-core-contrib-754874e68d1037c76fc4cc7d35d3fa12946d00f8.tar.gz
classes/lib: Update to use print as a function call
In python 3 print is a function call. In some cases bb.note is a more appropriate call to make. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 601ef1fb706..17420a87678 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -367,7 +367,9 @@ def check_sanity(sanity_data):
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):
+ print("WARNING: sanity.bbclass can't compare versions without python-distutils")
+ return 1
import commands
# Check the bitbake version meets minimum requirements
@@ -375,7 +377,7 @@ def check_sanity(sanity_data):
if not minversion:
# Hack: BB_MIN_VERSION hasn't been parsed yet so return
# and wait for the next call
- print "Foo %s" % minversion
+ print("Foo %s" % minversion)
return
if 0 == os.getuid():