1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Merge pull request #1553 from deronnax/pyupgrade-py38

pyupgrade --py38-plus
This commit is contained in:
Peter Bieringer 2024-10-05 22:55:36 +02:00 committed by GitHub
commit a78e32de4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 25 deletions

View file

@ -399,7 +399,7 @@ def load(paths: Optional[Iterable[Tuple[str, bool]]] = None
config_source = "config file %r" % path
config: types.CONFIG
try:
with open(path, "r") as f:
with open(path) as f:
parser.read_file(f)
config = {s: {o: parser[s][o] for o in parser.options(s)}
for s in parser.sections()}