Convert except statements to be Python 3 compatible

Ran "2to3 -w -n -f except ./".

The scripts still work with Python 2.
There are no intended behaviour changes.

Bug: 942522
Change-Id: Ifa274cb83f74cfa8ce092fffbb88f3ab5309e72c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1607841
Commit-Queue: Raul Tambre <raul@tambre.ee>
Auto-Submit: Raul Tambre <raul@tambre.ee>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
This commit is contained in:
Raul Tambre
2019-05-24 16:35:35 +00:00
committed by Commit Bot
parent 7d1300b89a
commit 7c93846385
17 changed files with 32 additions and 32 deletions

View File

@@ -57,7 +57,7 @@ def main():
stdin=input_file)
with open(fpath, 'wb') as output_file:
output_file.write(output)
except clang_format.NotFoundError, e:
except clang_format.NotFoundError as e:
print(e)
print('Failed to find clang-format. Falling-back on standard 3-way merge')