]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-113317: Move more formatting helpers into libclinic (#113438)
authorErlend E. Aasland <erlend@python.org>
Sat, 23 Dec 2023 17:08:10 +0000 (18:08 +0100)
committerGitHub <noreply@github.com>
Sat, 23 Dec 2023 17:08:10 +0000 (17:08 +0000)
commitca71987f4e3be56a369a1dd57763c6077b3c4899
treed1e2439413d5b1e1efe9fd674614fb50c32dadf3
parent8bce593a6317882da82693e6e8f7c49df0cf59a5
gh-113317: Move more formatting helpers into libclinic (#113438)

Move the following global helpers into libclinic:
- format_escape()
- normalize_snippet()
- wrap_declarations()

Also move strip_leading_and_trailing_blank_lines() and make it internal to libclinic.
Lib/test/test_clinic.py
Tools/clinic/clinic.py
Tools/clinic/libclinic/__init__.py
Tools/clinic/libclinic/formatting.py