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

chore: pyupgrade --py38-plus

This commit is contained in:
Mathieu Dupuy 2024-08-06 13:23:44 +02:00
parent 45f0b8809b
commit 34b449f27f
No known key found for this signature in database
GPG key ID: 08C1D4F32506B23A
4 changed files with 14 additions and 25 deletions

View file

@ -349,7 +349,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()}