Drop py2 support in gs-related files

python3 is the only supported version of python in depot_tools.

Bug: 1475402
Change-Id: I71db631b5556525dd4932134679c70cacd205a90
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4824616
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Gavin Mak <gavinmak@google.com>
This commit is contained in:
Gavin Mak
2023-08-30 15:33:44 +00:00
committed by LUCI CQ
parent b9d7c85582
commit 1c1cc06a0d
6 changed files with 11 additions and 40 deletions

View File

@@ -9,11 +9,7 @@ from __future__ import print_function
import hashlib
import optparse
import os
try:
import Queue as queue
except ImportError: # For Py3 compatibility
import queue
import queue
import re
import shutil
@@ -44,11 +40,6 @@ PLATFORM_MAPPING = {
'aix7': 'aix',
}
if sys.version_info.major == 2:
# pylint: disable=redefined-builtin
class FileNotFoundError(IOError):
pass
class InvalidFileError(IOError):
pass