# HG changeset patch # User Franz Glasner # Date 1556905583 -7200 # Node ID 17b938ccecb8dd7f4d8ad381122eec7522cff7d8 # Parent d2eb83720ad82127881f40ad9493c9a7c7b8c84a Rename the DEFAULT_LOADER marker to USE_DEFAULT_ASSOC diff -r d2eb83720ad8 -r 17b938ccecb8 configmix/__init__.py --- 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: