Mercurial > hgrepos > Python > libs > ConfigMix
comparison doc/changes.rst @ 205:344da17f01e3
Doc: wording in "Changes"
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 05 May 2019 16:39:14 +0200 |
| parents | 24f4ab79a3ab |
| children |
comparison
equal
deleted
inserted
replaced
| 204:bbc1aa40d781 | 205:344da17f01e3 |
|---|---|
| 21 | 21 |
| 22 - A major overhaul of how filename extensions are associated with loaders | 22 - A major overhaul of how filename extensions are associated with loaders |
| 23 has been done: | 23 has been done: |
| 24 | 24 |
| 25 + Filename extensions in :mod:`fnmatch` style are associated with | 25 + Filename extensions in :mod:`fnmatch` style are associated with |
| 26 file-mode strings. These file-mode strings are associated with loader | 26 file-mode strings. |
| 27 functions separately. | 27 |
| 28 These file-mode strings are associated with loader | |
| 29 functions separately via the mapping :py:data:`configmix.mode_loaders`. | |
| 28 | 30 |
| 29 + :py:func:`configmix.set_assoc`, :py:func:`configmix.get_assoc`, | 31 + :py:func:`configmix.set_assoc`, :py:func:`configmix.get_assoc`, |
| 30 :py:func:`configmix.clear_assoc` and | 32 :py:func:`configmix.clear_assoc` and |
| 31 :py:func:`configmix.get_default_assoc` are the new names for the old | 33 :py:func:`configmix.get_default_assoc` are the new names for the old |
| 32 `set_loader()`, `get_loader()`, `clear_loader()` and | 34 `set_loader()`, `get_loader()`, `clear_loader()` and |
| 33 `get_default_loader()` functions. | 35 `get_default_loader()` functions. |
| 36 They are used for associating :mod:`fnmatch` style filename patterns | |
| 37 to file-mode strings. Previously they associated loader functions | |
| 38 directly. | |
| 34 | 39 |
| 35 + :py:func:`configmix.set_assoc` now requires a :mod:`fnmatch` style | 40 + :py:func:`configmix.set_assoc` now requires a :mod:`fnmatch` style |
| 36 pattern instead of just a file extension string (i.e. a plain trailer). | 41 pattern instead of just a file extension string (i.e. a plain trailer). |
| 37 The previons dictionary with mapping from filename extensions to loader | 42 The previons dictionary with mapping from filename extensions to loader |
| 38 callables is now a list of tuples containing the :mod:`fnmatch` style | 43 callables is now a list of tuples containing the :mod:`fnmatch` style |
