changeset 648:e8f3e970e411

__len__() for jails also now internally expands: this is for consistency with __bool__ when applyint to non-container jails (which are possible)
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 13 May 2022 07:51:40 +0200
parents df58983f28a2
children ca8bba673200
files configmix/config.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configmix/config.py	Fri Mar 11 01:53:08 2022 +0100
+++ b/configmix/config.py	Fri May 13 07:51:40 2022 +0200
@@ -1259,7 +1259,7 @@
 
     def __len__(self):
         """Length support for containers"""
-        return len(self._base.getvarl(*self._path))
+        return len(self._base.getvarl_s(*self._path))
 
     if PY2: