mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
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:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user