Mercurial > hgrepos > Python > libs > ConfigMix
changeset 188:17b938ccecb8
Rename the DEFAULT_LOADER marker to USE_DEFAULT_ASSOC
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 03 May 2019 19:46:23 +0200 |
| parents | d2eb83720ad8 |
| children | 0d0980ed74cc |
| files | configmix/__init__.py |
| diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/configmix/__init__.py Fri May 03 19:44:04 2019 +0200 +++ b/configmix/__init__.py Fri May 03 19:46:23 2019 +0200 @@ -177,7 +177,7 @@ """ -DEFAULT_LOADER = object() +USE_DEFAULT_ASSOC = object() """Marker for the default association for an extension. To be used in :func:`set_assoc`. @@ -255,11 +255,11 @@ :func:`fnmatch.fnmatch` applies (i.e. :func:`os.path.normpath` will be called for both arguments). - If `loader` is :data:`.DEFAULT_LOADER` then the default association + If `loader` is :data:`.USE_DEFAULT_ASSOC` then the default association from :data:`.DEFAULT_ASSOC` will be used -- if any. """ - if mode is DEFAULT_LOADER: + if mode is USE_DEFAULT_ASSOC: for p, m in DEFAULT_ASSOC: if p == fnpattern: if append:
