Mercurial > hgrepos > Python > libs > ConfigMix
changeset 440:f297c23f78f0
Optimize __getitem__() in jailed configurations: call base directly
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 10 Dec 2021 02:18:16 +0100 |
| parents | bd27da55483a |
| children | 9d20fab53a19 |
| files | configmix/config.py |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/configmix/config.py Fri Dec 10 02:15:00 2021 +0100 +++ b/configmix/config.py Fri Dec 10 02:18:16 2021 +0100 @@ -835,9 +835,9 @@ """ if isinstance(key, (tuple, list)): - return self.getvarl_s(*key) + return self._base.getvarl_s(*(self._path + key)) else: - return self.getvarl_s(key) + return self._base.getvarl_s(*(self._path + (key, ))) def __contains__(self, key): if isinstance(key, (tuple, list)):
