From 831296eddc0cd2f278a5208d7781768ccfd9667a Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Sat, 28 Feb 2015 21:46:19 +0100 Subject: [PATCH] Minor shortening of name to fit in line --- lslopt/lslfoldconst.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lslopt/lslfoldconst.py b/lslopt/lslfoldconst.py index 935af95..e7c9db9 100644 --- a/lslopt/lslfoldconst.py +++ b/lslopt/lslfoldconst.py @@ -329,10 +329,10 @@ class foldconst(object): if optype in ('vector', 'rotation'): # not much to do with vectors or quaternions either - if lnt == 'CONST' and all(component == 0 for component in lval['value']): + if lnt == 'CONST' and all(x == 0 for x in lval['value']): # Change <0,0,0[,0]>+expr -> expr parent[index] = rval - elif rnt == 'CONST' and all(component == 0 for component in rval['value']): + elif rnt == 'CONST' and all(x == 0 for x in rval['value']): # Change expr+<0,0,0[,0]> -> expr parent[index] = lval return