summaryrefslogtreecommitdiff
path: root/git/repo/base.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-07-24 22:05:06 +0100
committerYobmod <yobmod@gmail.com>2021-07-24 22:05:06 +0100
commitd812818cb20c39e0bb5609186214ea4bcc18c047 (patch)
tree59caeb4d7a9d0ee97553ce09ad5c19e85d76134d /git/repo/base.py
parent2bc2ac02e270404fcb609eeacc4feea6146b9d2e (diff)
downloadgitpython-d812818cb20c39e0bb5609186214ea4bcc18c047.tar.gz
Rmv with_metaclass shim, make section constraint generic wrt its configparser type
Diffstat (limited to 'git/repo/base.py')
-rw-r--r--git/repo/base.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index 03851756..a57172c6 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -482,7 +482,8 @@ class Repo(object):
raise ValueError("Invalid configuration level: %r" % config_level)
- def config_reader(self, config_level: Optional[Lit_config_levels] = None) -> GitConfigParser:
+ def config_reader(self, config_level: Optional[Lit_config_levels] = None
+ ) -> GitConfigParser:
"""
:return:
GitConfigParser allowing to read the full git configuration, but not to write it
@@ -504,7 +505,8 @@ class Repo(object):
files = [self._get_config_path(config_level)]
return GitConfigParser(files, read_only=True, repo=self)
- def config_writer(self, config_level: Lit_config_levels = "repository") -> GitConfigParser:
+ def config_writer(self, config_level: Lit_config_levels = "repository"
+ ) -> GitConfigParser:
"""
:return:
GitConfigParser allowing to write values of the specified configuration file level.