| commit | dda1627b521c77359abd0431b72ef44329ccefc9 | [log] [tgz] |
|---|---|---|
| author | Alec Douglas <[email protected]> | Fri Nov 13 03:01:58 2020 |
| committer | Copybara-Service <[email protected]> | Fri Nov 13 03:11:43 2020 |
| tree | fc807e0cbdeb780183bece0a74e30014bf8acad1 | |
| parent | 0e20ec9359568718c3ca6d21ec627689d457155c [diff] |
Make extract_actions.py Python 3 compatible This commit makes extract_actions.py and its dependencies compatible with Python 3.8+. extract_actions.py and its dependencies are still Python 2 compatible. Bug: 941669 Change-Id: I4038e49449ef0cda8e7801ea49aef7e80a53c9bd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2531120 Commit-Queue: Dirk Pranke <[email protected]> Reviewed-by: Dirk Pranke <[email protected]> Cr-Commit-Position: refs/heads/master@{#827107} GitOrigin-RevId: a209c863274cf562a7a0cccccc4011544e8714f4
diff --git a/google/path_utils.py b/google/path_utils.py index 6ab4312..2935051 100644 --- a/google/path_utils.py +++ b/google/path_utils.py
@@ -78,7 +78,7 @@ file_path = os.path.join(*path) try: os.makedirs(file_path) - except OSError, e: + except OSError as e: # errno.EEXIST is "File exists". If we see another error, re-raise. if e.errno != errno.EEXIST: raise