Skip to content

Commit

Permalink
Tweak code formatting in Remote._set_cache_
Browse files Browse the repository at this point in the history
For slightly easier reading.
  • Loading branch information
EliahKagan committed Feb 26, 2024
1 parent 3958747 commit f56e1ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion git/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,10 @@ def _set_cache_(self, attr: str) -> None:
if attr == "_config_reader":
# NOTE: This is cached as __getattr__ is overridden to return remote config
# values implicitly, such as in print(r.pushurl).
self._config_reader = SectionConstraint(self.repo.config_reader("repository"), self._config_section_name())
self._config_reader = SectionConstraint(
self.repo.config_reader("repository"),
self._config_section_name(),
)
else:
super()._set_cache_(attr)

Expand Down

0 comments on commit f56e1ac

Please sign in to comment.