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 /git_config.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 'git_config.py')
-rw-r--r-- | git_config.py | 8 |
1 files changed, 4 insertions, 4 deletions
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): | |||
70 | return ".".join(parts) | 70 | return ".".join(parts) |
71 | 71 | ||
72 | 72 | ||
73 | class GitConfig(object): | 73 | class GitConfig: |
74 | _ForUser = None | 74 | _ForUser = None |
75 | 75 | ||
76 | _ForSystem = None | 76 | _ForSystem = None |
@@ -430,7 +430,7 @@ class RepoConfig(GitConfig): | |||
430 | return os.path.join(repo_config_dir, ".repoconfig/config") | 430 | return os.path.join(repo_config_dir, ".repoconfig/config") |
431 | 431 | ||
432 | 432 | ||
433 | class RefSpec(object): | 433 | class RefSpec: |
434 | """A Git refspec line, split into its components: | 434 | """A Git refspec line, split into its components: |
435 | 435 | ||
436 | forced: True if the line starts with '+' | 436 | forced: True if the line starts with '+' |
@@ -541,7 +541,7 @@ def GetUrlCookieFile(url, quiet): | |||
541 | yield cookiefile, None | 541 | yield cookiefile, None |
542 | 542 | ||
543 | 543 | ||
544 | class Remote(object): | 544 | class Remote: |
545 | """Configuration options related to a remote.""" | 545 | """Configuration options related to a remote.""" |
546 | 546 | ||
547 | def __init__(self, config, name): | 547 | def __init__(self, config, name): |
@@ -723,7 +723,7 @@ class Remote(object): | |||
723 | return self._config.GetString(key, all_keys=all_keys) | 723 | return self._config.GetString(key, all_keys=all_keys) |
724 | 724 | ||
725 | 725 | ||
726 | class Branch(object): | 726 | class Branch: |
727 | """Configuration options related to a single branch.""" | 727 | """Configuration options related to a single branch.""" |
728 | 728 | ||
729 | def __init__(self, config, name): | 729 | def __init__(self, config, name): |