mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
Apply the 2to3 print function transform
(Bitbake rev: ff2e28d0d9723ccd0e9dd635447b6d889cc9f597) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
978b5c9466
commit
ad543e2e41
@@ -110,7 +110,7 @@ def debug(level, msgdomain, msg, fn = None):
|
||||
if debug_level[msgdomain] >= level:
|
||||
bb.event.fire(MsgDebug(msg), None)
|
||||
if not bb.event._ui_handlers:
|
||||
print 'DEBUG: ' + msg
|
||||
print('DEBUG: ' + msg)
|
||||
|
||||
def note(level, msgdomain, msg, fn = None):
|
||||
if not msgdomain:
|
||||
@@ -119,25 +119,25 @@ def note(level, msgdomain, msg, fn = None):
|
||||
if level == 1 or verbose or debug_level[msgdomain] >= 1:
|
||||
bb.event.fire(MsgNote(msg), None)
|
||||
if not bb.event._ui_handlers:
|
||||
print 'NOTE: ' + msg
|
||||
print('NOTE: ' + msg)
|
||||
|
||||
def warn(msgdomain, msg, fn = None):
|
||||
bb.event.fire(MsgWarn(msg), None)
|
||||
if not bb.event._ui_handlers:
|
||||
print 'WARNING: ' + msg
|
||||
print('WARNING: ' + msg)
|
||||
|
||||
def error(msgdomain, msg, fn = None):
|
||||
bb.event.fire(MsgError(msg), None)
|
||||
if not bb.event._ui_handlers:
|
||||
print 'ERROR: ' + msg
|
||||
print('ERROR: ' + msg)
|
||||
|
||||
def fatal(msgdomain, msg, fn = None):
|
||||
bb.event.fire(MsgFatal(msg), None)
|
||||
if not bb.event._ui_handlers:
|
||||
print 'FATAL: ' + msg
|
||||
print('FATAL: ' + msg)
|
||||
sys.exit(1)
|
||||
|
||||
def plain(msg, fn = None):
|
||||
bb.event.fire(MsgPlain(msg), None)
|
||||
if not bb.event._ui_handlers:
|
||||
print msg
|
||||
print(msg)
|
||||
|
||||
Reference in New Issue
Block a user