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