From c1d837674c51a84b5cb841b7788b6166d8ad6f78 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Fri, 6 Mar 2015 22:55:28 +0100 Subject: [PATCH] Forgot to exclude globals from this optimization somehow. --- lslopt/lslfoldconst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lslopt/lslfoldconst.py b/lslopt/lslfoldconst.py index 72765be..f47fa7a 100644 --- a/lslopt/lslfoldconst.py +++ b/lslopt/lslfoldconst.py @@ -839,7 +839,7 @@ class foldconst(object): parent[index] = {'nt':'CONST', 'SEF':True, 't':node['t'], 'value':value} return - if nt == 'LIST' and len(child) == 1: + if nt == 'LIST' and len(child) == 1 and not self.globalmode: node = parent[index] = self.Cast(child[0], 'list') if issef: node['SEF'] = True