summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-18 12:50:15 +0200
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-16 15:10:40 +0100
commitc4fde248b14d4be9cab6d0eff85f9d7f852a4b65 (patch)
tree0462a7b4c188f390af53d2b1a6312894774d740f /bitbake/lib/bb
parent2fc283c52d7d6d6bf8e67a7847f064fa20d4bc51 (diff)
downloadpoky-c4fde248b14d4be9cab6d0eff85f9d7f852a4b65.tar.gz
*: use print() as a function
to make python3 happy (Bitbake rev: c82926ccdd4ec4e3ad6e78a381dacb96adf9b409) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/msg.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py
index cea5efb5a4..8d2bcce452 100644
--- a/bitbake/lib/bb/msg.py
+++ b/bitbake/lib/bb/msg.py
@@ -110,7 +110,7 @@ def debug(level, msgdomain, msg, fn = None):
110 if debug_level[msgdomain] >= level: 110 if debug_level[msgdomain] >= level:
111 bb.event.fire(MsgDebug(msg), None) 111 bb.event.fire(MsgDebug(msg), None)
112 if not bb.event._ui_handlers: 112 if not bb.event._ui_handlers:
113 print('DEBUG: ' + msg) 113 print('DEBUG: %s' % (msg))
114 114
115def note(level, msgdomain, msg, fn = None): 115def note(level, msgdomain, msg, fn = None):
116 if not msgdomain: 116 if not msgdomain:
@@ -119,20 +119,20 @@ def note(level, msgdomain, msg, fn = None):
119 if level == 1 or verbose or debug_level[msgdomain] >= 1: 119 if level == 1 or verbose or debug_level[msgdomain] >= 1:
120 bb.event.fire(MsgNote(msg), None) 120 bb.event.fire(MsgNote(msg), None)
121 if not bb.event._ui_handlers: 121 if not bb.event._ui_handlers:
122 print('NOTE: ' + msg) 122 print('NOTE: %s' % (msg))
123 123
124def warn(msgdomain, msg, fn = None): 124def warn(msgdomain, msg, fn = None):
125 bb.event.fire(MsgWarn(msg), None) 125 bb.event.fire(MsgWarn(msg), None)
126 if not bb.event._ui_handlers: 126 if not bb.event._ui_handlers:
127 print('WARNING: ' + msg) 127 print('WARNING: %s' % (msg))
128 128
129def error(msgdomain, msg, fn = None): 129def error(msgdomain, msg, fn = None):
130 bb.event.fire(MsgError(msg), None) 130 bb.event.fire(MsgError(msg), None)
131 print 'ERROR: ' + msg 131 print('ERROR: %s' % (msg))
132 132
133def fatal(msgdomain, msg, fn = None): 133def fatal(msgdomain, msg, fn = None):
134 bb.event.fire(MsgFatal(msg), None) 134 bb.event.fire(MsgFatal(msg), None)
135 print('FATAL: ' + msg) 135 print('FATAL: %s' % (msg))
136 sys.exit(1) 136 sys.exit(1)
137 137
138def plain(msg, fn = None): 138def plain(msg, fn = None):