Mercurial > hgrepos > Python > libs > ConfigMix
changeset 205:344da17f01e3
Doc: wording in "Changes"
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 05 May 2019 16:39:14 +0200 |
| parents | bbc1aa40d781 |
| children | 5064e3a2e54a |
| files | doc/changes.rst |
| diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/changes.rst Sun May 05 14:57:15 2019 +0200 +++ b/doc/changes.rst Sun May 05 16:39:14 2019 +0200 @@ -23,14 +23,19 @@ has been done: + Filename extensions in :mod:`fnmatch` style are associated with - file-mode strings. These file-mode strings are associated with loader - functions separately. + file-mode strings. + + These file-mode strings are associated with loader + functions separately via the mapping :py:data:`configmix.mode_loaders`. + :py:func:`configmix.set_assoc`, :py:func:`configmix.get_assoc`, :py:func:`configmix.clear_assoc` and :py:func:`configmix.get_default_assoc` are the new names for the old `set_loader()`, `get_loader()`, `clear_loader()` and `get_default_loader()` functions. + They are used for associating :mod:`fnmatch` style filename patterns + to file-mode strings. Previously they associated loader functions + directly. + :py:func:`configmix.set_assoc` now requires a :mod:`fnmatch` style pattern instead of just a file extension string (i.e. a plain trailer).
