diff options
author | Paul Burton <paul.burton@imgtec.com> | 2016-09-27 16:03:51 +0100 |
---|---|---|
committer | sjg <sjg@chromium.org> | 2016-10-09 09:30:32 -0600 |
commit | ac3fde9394ce90503930026c62ffd94bf7fa09fd (patch) | |
tree | ba4656e51f8ff8e318e688b2de629e73698a8e24 /tools/patman/cros_subprocess.py | |
parent | a920a17b2f418535870788ae81234dc6b8aa6661 (diff) | |
download | u-boot-ac3fde9394ce90503930026c62ffd94bf7fa09fd.tar.gz |
patman: Make exception handling python 3.x safe
Syntax for exception handling is a little more strict in python 3.x.
Convert all uses to a form accepted by both python 2.x & python 3.x.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/cros_subprocess.py')
-rw-r--r-- | tools/patman/cros_subprocess.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patman/cros_subprocess.py b/tools/patman/cros_subprocess.py index 0fc4a06b50..ebd4300dfd 100644 --- a/tools/patman/cros_subprocess.py +++ b/tools/patman/cros_subprocess.py @@ -166,7 +166,7 @@ class Popen(subprocess.Popen): while read_set or write_set: try: rlist, wlist, _ = select.select(read_set, write_set, [], 0.2) - except select.error, e: + except select.error as e: if e.args[0] == errno.EINTR: continue raise |