MCPcopy Index your code
hub / github.com/pyodide/pyodide / format_sysconfig

Function format_sysconfig

cpython/adjust_sysconfig.py:67–73  ·  view source on GitHub ↗
(config_vars: dict[str, str])

Source from the content-addressed store, hash-verified

65
66
67def 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
76if __name__ == "__main__":

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…