Mercurial > hgrepos > Python > libs > ConfigMix
changeset 311:035b42a224ed
Docu
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 28 Apr 2021 09:23:14 +0200 |
| parents | 801cd16223e4 |
| children | 0788e8e162f6 |
| files | configmix/config.py |
| diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/configmix/config.py Wed Apr 28 09:19:55 2021 +0200 +++ b/configmix/config.py Wed Apr 28 09:23:14 2021 +0200 @@ -194,14 +194,16 @@ def _lookupref(self, key, default=_MARKER): """ - `key` must be a reference URI without any (namespace) prefixes - and suffixes + + `key` must be a configuration reference URI without any + (namespace) prefixes and suffixes """ return self.expand_ref_uri(key, default=default) def expand_if_reference(self, v, default=_MARKER): - """Check whether `v` is a reference and -- if true -- then expand it. + """Check whether `v` is a configuration reference and -- if true -- + then expand it. `v` must match the pattern ``{{ref:<REFERENCE>}}``
