diff options
| author | Chris Larson <chris_larson@mentor.com> | 2010-04-09 19:46:14 -0700 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:33 +0100 |
| commit | ad543e2e41b7e86d83cf0518b096ef82627bf891 (patch) | |
| tree | f8f3c5d4f759f3169a937db1da6858a11aa938fa /bitbake/lib/bb/msg.py | |
| parent | 978b5c946683885a64ee9e7c2064ff696f05cddb (diff) | |
| download | poky-ad543e2e41b7e86d83cf0518b096ef82627bf891.tar.gz | |
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>
Diffstat (limited to 'bitbake/lib/bb/msg.py')
| -rw-r--r-- | bitbake/lib/bb/msg.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py index 788e1dddf7..0d90f959d3 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: ' + msg) |
| 114 | 114 | ||
| 115 | def note(level, msgdomain, msg, fn = None): | 115 | def note(level, msgdomain, msg, fn = None): |
| 116 | if not msgdomain: | 116 | if not msgdomain: |
| @@ -119,25 +119,25 @@ 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: ' + msg) |
| 123 | 123 | ||
| 124 | def warn(msgdomain, msg, fn = None): | 124 | def 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: ' + msg) |
| 128 | 128 | ||
| 129 | def error(msgdomain, msg, fn = None): | 129 | def error(msgdomain, msg, fn = None): |
| 130 | bb.event.fire(MsgError(msg), None) | 130 | bb.event.fire(MsgError(msg), None) |
| 131 | if not bb.event._ui_handlers: | 131 | if not bb.event._ui_handlers: |
| 132 | print 'ERROR: ' + msg | 132 | print('ERROR: ' + msg) |
| 133 | 133 | ||
| 134 | def fatal(msgdomain, msg, fn = None): | 134 | def fatal(msgdomain, msg, fn = None): |
| 135 | bb.event.fire(MsgFatal(msg), None) | 135 | bb.event.fire(MsgFatal(msg), None) |
| 136 | if not bb.event._ui_handlers: | 136 | if not bb.event._ui_handlers: |
| 137 | print 'FATAL: ' + msg | 137 | print('FATAL: ' + msg) |
| 138 | sys.exit(1) | 138 | sys.exit(1) |
| 139 | 139 | ||
| 140 | def plain(msg, fn = None): | 140 | def plain(msg, fn = None): |
| 141 | bb.event.fire(MsgPlain(msg), None) | 141 | bb.event.fire(MsgPlain(msg), None) |
| 142 | if not bb.event._ui_handlers: | 142 | if not bb.event._ui_handlers: |
| 143 | print msg | 143 | print(msg) |
