diff options
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r-- | bitbake/lib/bb/build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 3d71013998..4f14e63ac7 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -140,7 +140,7 @@ def exec_func(func, d, dirs = None): | |||
140 | so = os.popen("tee \"%s\"" % logfile, "w") | 140 | so = os.popen("tee \"%s\"" % logfile, "w") |
141 | else: | 141 | else: |
142 | so = file(logfile, 'w') | 142 | so = file(logfile, 'w') |
143 | except OSError, e: | 143 | except OSError as e: |
144 | bb.msg.error(bb.msg.domain.Build, "opening log file: %s" % e) | 144 | bb.msg.error(bb.msg.domain.Build, "opening log file: %s" % e) |
145 | pass | 145 | pass |
146 | 146 | ||
@@ -285,7 +285,7 @@ def exec_task(task, d): | |||
285 | event.fire(TaskStarted(task, localdata), localdata) | 285 | event.fire(TaskStarted(task, localdata), localdata) |
286 | exec_func(task, localdata) | 286 | exec_func(task, localdata) |
287 | event.fire(TaskSucceeded(task, localdata), localdata) | 287 | event.fire(TaskSucceeded(task, localdata), localdata) |
288 | except FuncFailed, message: | 288 | except FuncFailed as message: |
289 | # Try to extract the optional logfile | 289 | # Try to extract the optional logfile |
290 | try: | 290 | try: |
291 | (msg, logfile) = message | 291 | (msg, logfile) = message |