Mercurial > hgrepos > Python > libs > ConfigMix
diff doc/changes.rst @ 192:46c7d872db83
Changelog: note the latest refactorings
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 03 May 2019 20:04:40 +0200 |
| parents | 24a05dae0e76 |
| children | 24f4ab79a3ab |
line wrap: on
line diff
--- a/doc/changes.rst Fri May 03 19:59:21 2019 +0200 +++ b/doc/changes.rst Fri May 03 20:04:40 2019 +0200 @@ -1,4 +1,4 @@ -.. -*- coding: utf-8 -*- +.. -*- coding: utf-8; mode: rst; -*- ========= Changes @@ -19,11 +19,24 @@ 0.7 --- -- :py:func:`configmix.set_loader` now requires a :mod:`fnmatch` style - pattern instead of just a file extension string (i.e. a plain trailer). - The previons dictionary with mapping from filename extensions to loader - callables is now a list of tuples containing the :mod:`fnmatch` style - pattern and the corresponding loader callable. +- A major overhowl of how filename extensions are associated with loaders + 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. + + + :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. + + + :py:func:`configmix.set_assoc` now requires a :mod:`fnmatch` style + pattern instead of just a file extension string (i.e. a plain trailer). + The previons dictionary with mapping from filename extensions to loader + callables is now a list of tuples containing the :mod:`fnmatch` style + pattern and the corresponding loader callable. 0.6
