Skip to content

Commit

Permalink
strip lvalue for set global
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Sep 28, 2014
1 parent c2a9f0c commit 8afe527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cheetah/legacy_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def addSet(self, components, setStyle):
primary = components.lvalue
secondary = ''
expr = 'self._CHEETAH__globalSetVars["{0}"]{1} {2} {3}'.format(
primary, secondary, components.op, components.rvalue,
primary, secondary, components.op, components.rvalue.strip(),
)

self.addChunk(expr)
Expand Down

0 comments on commit 8afe527

Please sign in to comment.