(config_vars: dict[str, str])
| 65 | |
| 66 | |
| 67 | def format_sysconfig(config_vars: dict[str, str]) -> str: |
| 68 | fmted_config_vars = repr(config_vars) |
| 69 | # Make any string that begins with `--tofstring--` into an fstring and |
| 70 | # remove the prefix. |
| 71 | fmted_config_vars = fmted_config_vars.replace("'--tofstring--", "f'") |
| 72 | fmted_config_vars = fmted_config_vars.replace('"--tofstring--', 'f"') |
| 73 | return fmted_config_vars |
| 74 | |
| 75 | |
| 76 | if __name__ == "__main__": |
no outgoing calls
no test coverage detected
searching dependent graphs…