diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-04-11 17:03:55 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-04-11 17:34:11 -0700 |
commit | d39ab776e7ceaefc8361150151cf0892dcb70d9c (patch) | |
tree | 603dad748ff3fcbf9a5ff39b5c692f6455fbf5e3 /lib/bb/build.py | |
parent | b3b314aade1f0a04e888361e1ac946e5195e1509 (diff) | |
download | bitbake-d39ab776e7ceaefc8361150151cf0892dcb70d9c.tar.gz |
Apply some 2to3 transforms that don't cause issues in 2.6
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/build.py')
-rw-r--r-- | lib/bb/build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py index a10745272..807014d0f 100644 --- a/lib/bb/build.py +++ b/lib/bb/build.py @@ -140,7 +140,7 @@ def exec_func(func, d, dirs = None): so = os.popen("tee \"%s\"" % logfile, "w") else: so = file(logfile, 'w') - except OSError, e: + except OSError as e: bb.msg.error(bb.msg.domain.Build, "opening log file: %s" % e) pass @@ -285,7 +285,7 @@ def exec_task(task, d): event.fire(TaskStarted(task, localdata), localdata) exec_func(task, localdata) event.fire(TaskSucceeded(task, localdata), localdata) - except FuncFailed, message: + except FuncFailed as message: # Try to extract the optional logfile try: (msg, logfile) = message |