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 --- git_config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'git_config.py') diff --git a/git_config.py b/git_config.py index c19f7662..4f053ed0 100644 --- a/git_config.py +++ b/git_config.py @@ -70,7 +70,7 @@ def _key(name): return ".".join(parts) -class GitConfig(object): +class GitConfig: _ForUser = None _ForSystem = None @@ -430,7 +430,7 @@ class RepoConfig(GitConfig): return os.path.join(repo_config_dir, ".repoconfig/config") -class RefSpec(object): +class RefSpec: """A Git refspec line, split into its components: forced: True if the line starts with '+' @@ -541,7 +541,7 @@ def GetUrlCookieFile(url, quiet): yield cookiefile, None -class Remote(object): +class Remote: """Configuration options related to a remote.""" def __init__(self, config, name): @@ -723,7 +723,7 @@ class Remote(object): return self._config.GetString(key, all_keys=all_keys) -class Branch(object): +class Branch: """Configuration options related to a single branch.""" def __init__(self, config, name): -- cgit v1.2.3-54-g00ecf