diff options
author | Scott Garman <scott.a.garman@intel.com> | 2011-06-14 16:44:58 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-15 11:13:13 +0100 |
commit | 62d538fbe65cf61ebc5996b0d6eb7e4ec47b6ead (patch) | |
tree | 685b0c48785db94f4fc26f727932f8779bc2fb5a /bitbake/lib/bb/process.py | |
parent | 039798a4d250665c66fd738dba4d07dc2ec70652 (diff) | |
download | poky-62d538fbe65cf61ebc5996b0d6eb7e4ec47b6ead.tar.gz |
make exception handling syntax consistent
Update exception handling syntax to use the modern style:
except ExcType as localvar
(Bitbake rev: dbf5f42b06bef81749b13aa99945cc1292a6676d)
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/process.py')
-rw-r--r-- | bitbake/lib/bb/process.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/process.py b/bitbake/lib/bb/process.py index 4150d80e06..b74cb18066 100644 --- a/bitbake/lib/bb/process.py +++ b/bitbake/lib/bb/process.py | |||
@@ -93,7 +93,7 @@ def run(cmd, input=None, log=None, **options): | |||
93 | 93 | ||
94 | try: | 94 | try: |
95 | pipe = Popen(cmd, **options) | 95 | pipe = Popen(cmd, **options) |
96 | except OSError, exc: | 96 | except OSError as exc: |
97 | if exc.errno == 2: | 97 | if exc.errno == 2: |
98 | raise NotFoundError(cmd) | 98 | raise NotFoundError(cmd) |
99 | else: | 99 | else: |