[OE-core] [PATCH 05/15] classes/lib: Update to use print as a function call
Martin Jansa
martin.jansa at gmail.com
Tue May 7 15:40:57 UTC 2013
On Tue, May 07, 2013 at 01:55:57PM +0100, Richard Purdie wrote:
> 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 at linuxfoundation.org>
> ---
> meta/classes/sanity.bbclass | 7 ++++---
> meta/classes/sstate.bbclass | 6 +++---
> meta/lib/oe/path.py | 2 +-
> 3 files changed, 8 insertions(+), 7 deletions(-)
>
> diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
> index 766e97e..d4a8f5e 100644
> --- a/meta/classes/sanity.bbclass
> +++ b/meta/classes/sanity.bbclass
> @@ -367,15 +367,16 @@ 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
> - import commands
^ was removing "import commands" intentional? maybe it just belongs to
different patch in this series
> + def LooseVersion(v):
> + print("WARNING: sanity.bbclass can't compare versions without python-distutils")
> + return 1
>
--
Martin 'JaMa' Jansa jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20130507/13c5a515/attachment-0001.sig>
More information about the Openembedded-core
mailing list