(section: str, key: str, default: int)
| 64 | |
| 65 | |
| 66 | def _i(section: str, key: str, default: int) -> int: |
| 67 | try: |
| 68 | return int(_cfg[section][key]) |
| 69 | except (KeyError, ValueError): |
| 70 | return default |
| 71 | |
| 72 | |
| 73 | def _s(section: str, key: str, default: str) -> str: |