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