j2cfg: fix is_sequence()
this fixes config/dictionary merges because "str" is considered as sequence too.
This commit is contained in:
parent
203aa84365
commit
a48deac5a4
@ -10,6 +10,8 @@ from .settings import is_env_banned
|
||||
|
||||
|
||||
def is_sequence(x) -> bool:
|
||||
if isinstance(x, str):
|
||||
return False
|
||||
return isinstance(x, collections.abc.Sequence)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user