changeset 510:acf1e8696d68

FIX: Some other lists that need to converted to tuples
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 18 Dec 2021 18:41:11 +0100
parents 4c2517e18af0
children 93a5346907ef
files configmix/config.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configmix/config.py	Sat Dec 18 18:36:50 2021 +0100
+++ b/configmix/config.py	Sat Dec 18 18:41:11 2021 +0100
@@ -992,7 +992,7 @@
         real_paths = []
         for path in paths:
             if isinstance(path, (list, tuple)):
-                real_paths.append(self._path + path)
+                real_paths.append(self._path + tuple(path))
             elif isinstance(path, dict):
                 raise TypeError(
                     "a `dict' is not supported in a jailed configuration")
@@ -1081,7 +1081,7 @@
         if self._path:
             new_rootpath = self._path + tuple(rootpath)
         else:
-            new_rootpath = rootpath
+            new_rootpath = tuple(rootpath)
         sjc = _JailedConfiguration(*new_rootpath)
         if bind_root:
             sjc.rebind(self._base)