comparison configmix/__init__.py @ 141:647782859ae1

An extra hint that filename extension comparisons for loader lookup are case-insensitive
author Franz Glasner <hg@dom66.de>
date Sat, 07 Apr 2018 09:24:20 +0200
parents c87b0dc54e1d
children 7e6ec99d5ff5
comparison
equal deleted inserted replaced
140:d8d47893df5b 141:647782859ae1
116 with `extension`. 116 with `extension`.
117 117
118 :param str extension: the extension to associate a loader with 118 :param str extension: the extension to associate a loader with
119 :param callable loader: a callable that accepts a `filename` argument and 119 :param callable loader: a callable that accepts a `filename` argument and
120 returns a parsed configuration from a given file 120 returns a parsed configuration from a given file
121
122 `extension` should be all lowercase because lookup in the loader database
123 is *case-insensitive*.
121 124
122 If `loader` is :data:`DEFAULT_LOADER` then the default association 125 If `loader` is :data:`DEFAULT_LOADER` then the default association
123 from :data:`default_loaders` will be used -- if any. 126 from :data:`default_loaders` will be used -- if any.
124 127
125 """ 128 """