Drop py2 support in gerrit and git related files

python3 is the only supported version of python in depot_tools.

Bug: 1475402
Change-Id: Ie4ee18d297081b3aa0206b8d7ce6461819bff0ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4809560
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Gavin Mak <gavinmak@google.com>
This commit is contained in:
Gavin Mak
2023-08-24 18:35:41 +00:00
committed by LUCI CQ
parent 65c49b18b9
commit b5c7f4b46c
31 changed files with 66 additions and 264 deletions

View File

@@ -5,25 +5,16 @@
# found in the LICENSE file.
"""Unit tests for git_find_releases.py."""
from __future__ import print_function
from __future__ import unicode_literals
from io import StringIO
import logging
import os
import sys
import unittest
if sys.version_info.major == 2:
from StringIO import StringIO
import mock
else:
from io import StringIO
from unittest import mock
from unittest import mock
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import git_find_releases
import git_common
class TestGitFindReleases(unittest.TestCase):