MCPcopy Index your code
hub / github.com/cosmicpython/book / main

Function main

uppercase-titles.py:38–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37
38def main():
39 for chapter in CHAPTERS:
40 path = Path(f'{chapter}.asciidoc')
41 contents = path.read_text()
42 fixed = '\n'.join(
43 fix_line(l) for l in contents.splitlines()
44 )
45 path.write_text(fixed)
46
47if __name__ == '__main__':
48 main()

Callers 1

Calls 1

fix_lineFunction · 0.85

Tested by

no test coverage detected