(conf)
| 391 | |
| 392 | |
| 393 | def _parse_named(conf): |
| 394 | result: dict[str, dict] = {"remote": {}, "machine": {}, "db": {}} |
| 395 | |
| 396 | for section, val in conf.items(): |
| 397 | match = re_find(r'^\s*(remote|machine|db)\s*"(.*)"\s*$', section) |
| 398 | if match: |
| 399 | key, name = match |
| 400 | result[key][name] = val |
| 401 | else: |
| 402 | result[section] = val |
| 403 | |
| 404 | return result |
| 405 | |
| 406 | |
| 407 | def _pack_named(conf): |