Mercurial > hgrepos > Python > libs > ConfigMix
diff configmix/config.py @ 443:23941c014130
FIX: Merge properly when the configuration's __getitem__ do now interpolate: prohibit duplicate interpolation and interpolation while merging
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 10 Dec 2021 09:27:47 +0100 |
| parents | 94cf5a8722d6 |
| children | b95c12781497 |
line wrap: on
line diff
--- a/configmix/config.py Fri Dec 10 03:00:11 2021 +0100 +++ b/configmix/config.py Fri Dec 10 09:27:47 2021 +0100 @@ -268,6 +268,14 @@ else: return super(Configuration, self).__contains__(key) + def getitem_ns(self, key): + """Just forward to the *original* :meth:`dict.__getitem__`. + + No variable interpolation and key path access. + + """ + return super(Configuration, self).__getitem__(key) + def getvarl(self, *path, **kwds): """Get a variable where the hierarchy is given in `path` as sequence and the namespace is given in the `namespace` keyword argument.
