# HG changeset patch # User Franz Glasner # Date 1557732903 -7200 # Node ID b2c75efad9e44072d689b29b19a76f4e919f6540 # Parent f5011eec3b6ed894b665a59ed454a9b156a83d99 Renamed the 'ignore' loader key to '-*-ignore-*-' diff -r f5011eec3b6e -r b2c75efad9e4 configmix/__init__.py --- a/configmix/__init__.py Sun May 12 18:06:37 2019 +0200 +++ b/configmix/__init__.py Mon May 13 09:35:03 2019 +0200 @@ -171,7 +171,7 @@ "conf-toml": _load_toml, "javascript": _load_json, "json": _load_json, - "ignore": _load_ignore, + "-*-ignore-*-": _load_ignore, } """Default associations between file modes and loader functions""" diff -r f5011eec3b6e -r b2c75efad9e4 tests/test.py --- a/tests/test.py Sun May 12 18:06:37 2019 +0200 +++ b/tests/test.py Mon May 13 09:35:03 2019 +0200 @@ -375,7 +375,7 @@ def test02_ignore_one_style(self): configmix.clear_assoc() configmix.set_assoc("*.conf", configmix.get_default_assoc("*.yml")) - configmix.set_assoc("*", "ignore", append=True) + configmix.set_assoc("*", "-*-ignore-*-", append=True) cfg = configmix.load(os.path.join(TESTDATADIR, "conf1.ini"), os.path.join(TESTDATADIR, "conf30.conf")) @@ -386,7 +386,7 @@ configmix.clear_assoc() configmix.set_assoc("*.conf", configmix.get_default_assoc("*.yml")) # This inserts at index 0 effectively ignoring all configuration files! - configmix.set_assoc("*", "ignore") + configmix.set_assoc("*", "-*-ignore-*-") cfg = configmix.load(os.path.join(TESTDATADIR, "conf1.ini"), os.path.join(TESTDATADIR, "conf30.conf"))