comparison configmix/config.py @ 509:4c2517e18af0

FIX: Convert a list ito a tuple before appending it to another tuple
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 18 Dec 2021 18:36:50 +0100
parents 402c7f5a2b76
children acf1e8696d68
comparison
equal deleted inserted replaced
508:42935e4cb8d3 509:4c2517e18af0
975 975
976 def getfirstvarl(self, *paths, **kwds): 976 def getfirstvarl(self, *paths, **kwds):
977 real_paths = [] 977 real_paths = []
978 for path in paths: 978 for path in paths:
979 if isinstance(path, (list, tuple)): 979 if isinstance(path, (list, tuple)):
980 real_paths.append(self._path + path) 980 real_paths.append(self._path + tuple(path))
981 elif isinstance(path, dict): 981 elif isinstance(path, dict):
982 raise TypeError( 982 raise TypeError(
983 "a `dict' is not supported in a jailed configuration") 983 "a `dict' is not supported in a jailed configuration")
984 else: 984 else:
985 raise TypeError("a paths item must be a list or tuple") 985 raise TypeError("a paths item must be a list or tuple")