From e5c2c4057e6147873a0970790ba8b5d7d7005df8 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Mon, 19 Nov 2018 14:07:42 +0100 Subject: [PATCH] Always cast the separator to string when expanding If it is a key, it would otherwise cause an error on expansion. --- lslopt/lslfuncopt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lslopt/lslfuncopt.py b/lslopt/lslfuncopt.py index 3e65aeb..36dcda9 100644 --- a/lslopt/lslfuncopt.py +++ b/lslopt/lslfuncopt.py @@ -210,7 +210,7 @@ def OptimizeFunc(self, parent, index): newnode = nr(nt='+', t='string', SEF=True, ch=[CastDL2S(self, child[0], i), nr(nt='+', t='string', SEF=True, - ch=[child[1], newnode] + ch=[self.Cast(child[1], 'string'), newnode] ) ]) parent[index] = newnode