delete Python 2 (object) compat

Bug: 302871152
Change-Id: I39636d73a6e1d69efa8ade74f75c5381651e6dc8
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/390054
Commit-Queue: Mike Frysinger <vapier@google.com>
Reviewed-by: Aravind Vasudevan <aravindvasudev@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
Mike Frysinger
2023-10-19 05:13:32 -04:00
committed by LUCI
parent 024df06ec1
commit d4aee6570b
19 changed files with 43 additions and 43 deletions

6
repo
View File

@ -40,7 +40,7 @@ MIN_PYTHON_VERSION_HARD = (3, 5)
# Keep basic logic in sync with repo_trace.py.
class Trace(object):
class Trace:
"""Trace helper logic."""
REPO_TRACE = "REPO_TRACE"
@ -1214,7 +1214,7 @@ def _FindRepo():
return (repo, os.path.join(curdir, repodir))
class _Options(object):
class _Options:
help = False
version = False
@ -1258,7 +1258,7 @@ def _ParseArguments(args):
return cmd, opt, arg
class Requirements(object):
class Requirements:
"""Helper for checking repo's system requirements."""
REQUIREMENTS_NAME = "requirements.json"