From d4aee6570b64c5b6de584b0a5ce76e6a139faf38 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 19 Oct 2023 05:13:32 -0400 Subject: 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 Reviewed-by: Aravind Vasudevan Tested-by: Mike Frysinger --- command.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'command.py') 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): """Exception thrown with invalid command usage.""" -class Command(object): +class Command: """Base class for any command line action in repo.""" # Singleton for all commands to track overall repo command execution and @@ -498,11 +498,11 @@ class PagedCommand(Command): return True -class MirrorSafeCommand(object): +class MirrorSafeCommand: """Command permits itself to run within a mirror, and does not require a working directory. """ -class GitcClientCommand(object): +class GitcClientCommand: """Command that requires the local client to be a GITC client.""" -- cgit v1.2.3-54-g00ecf