summaryrefslogtreecommitdiffstats
path: root/command.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2023-10-19 05:13:32 -0400
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-10-20 04:51:01 +0000
commitd4aee6570b64c5b6de584b0a5ce76e6a139faf38 (patch)
treec70cfd687689cff85ca7682071ccd0c8f690536c /command.py
parent024df06ec15d7304fbb5f9a2b1aa44f2af9daf4c (diff)
downloadgit-repo-d4aee6570b64c5b6de584b0a5ce76e6a139faf38.tar.gz
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>
Diffstat (limited to 'command.py')
-rw-r--r--command.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/command.py b/command.py
index 9d5d56ee..a6189ed6 100644
--- a/command.py
+++ b/command.py
@@ -46,7 +46,7 @@ class UsageError(RepoExitError):
46 """Exception thrown with invalid command usage.""" 46 """Exception thrown with invalid command usage."""
47 47
48 48
49class Command(object): 49class Command:
50 """Base class for any command line action in repo.""" 50 """Base class for any command line action in repo."""
51 51
52 # Singleton for all commands to track overall repo command execution and 52 # Singleton for all commands to track overall repo command execution and
@@ -498,11 +498,11 @@ class PagedCommand(Command):
498 return True 498 return True
499 499
500 500
501class MirrorSafeCommand(object): 501class MirrorSafeCommand:
502 """Command permits itself to run within a mirror, and does not require a 502 """Command permits itself to run within a mirror, and does not require a
503 working directory. 503 working directory.
504 """ 504 """
505 505
506 506
507class GitcClientCommand(object): 507class GitcClientCommand:
508 """Command that requires the local client to be a GITC client.""" 508 """Command that requires the local client to be a GITC client."""