diff --git a/doc/changes.rst b/doc/changes.rst index 93e1ec3c..d191ec0f 100644 --- a/doc/changes.rst +++ b/doc/changes.rst @@ -2382,7 +2382,9 @@ Python naming conventions as documented in :pep:`8`. For example corrected with the compliant names being documented and used in examples. The old names are still available maintaining :ref:`backwards compatibility `. +Consider using the script `tools/update-names.sh` for updating +the names in your code. The change happened in version 3.43.2.0. -.. include:: ../doc/renames.rstgen \ No newline at end of file +.. include:: ../doc/renames.rstgen diff --git a/tools/update-names.sh b/tools/update-names.sh new file mode 100644 index 00000000..4ef2e6c5 --- /dev/null +++ b/tools/update-names.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# +# Update a repository's function names to follow the PEP 8 compliant +# scheme introduced in APSW version 3.42.2. +# Run the script in the root directory of the Git repository that +# requires the update. +# Before committing the results, inspect them carefully, and test +# the resulting code. +# +# Requires an installed version of git-subst; +# see https://github.com/dspinellis/git-subst/ +# + +set -eu + +git subst '\