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/server/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/server/process.py')
| -rw-r--r-- | bitbake/lib/bb/server/process.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index 44b8e4d496..5c1044dd50 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py | |||
| @@ -64,7 +64,7 @@ class EventAdapter(): | |||
| 64 | def send(self, event): | 64 | def send(self, event): |
| 65 | try: | 65 | try: |
| 66 | self.queue.put(event) | 66 | self.queue.put(event) |
| 67 | except Exception, err: | 67 | except Exception as err: |
| 68 | print("EventAdapter puked: %s" % str(err)) | 68 | print("EventAdapter puked: %s" % str(err)) |
| 69 | 69 | ||
| 70 | 70 | ||
| @@ -168,7 +168,7 @@ class ProcessServer(Process): | |||
| 168 | exitcode = 0 | 168 | exitcode = 0 |
| 169 | finally: | 169 | finally: |
| 170 | util._exit_function() | 170 | util._exit_function() |
| 171 | except SystemExit, e: | 171 | except SystemExit as e: |
| 172 | if not e.args: | 172 | if not e.args: |
| 173 | exitcode = 1 | 173 | exitcode = 1 |
| 174 | elif type(e.args[0]) is int: | 174 | elif type(e.args[0]) is int: |
