diff options
author | Mike Frysinger <vapier@google.com> | 2023-10-19 05:13:32 -0400 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-10-20 04:51:01 +0000 |
commit | d4aee6570b64c5b6de584b0a5ce76e6a139faf38 (patch) | |
tree | c70cfd687689cff85ca7682071ccd0c8f690536c /command.py | |
parent | 024df06ec15d7304fbb5f9a2b1aa44f2af9daf4c (diff) | |
download | git-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.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 | ||
49 | class Command(object): | 49 | class 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 | ||
501 | class MirrorSafeCommand(object): | 501 | class 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 | ||
507 | class GitcClientCommand(object): | 507 | class 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.""" |