]> Devi Nivas Git - chevron.git/commit
Stop using a leaked variable. (flake8)
authornoah morrison <noah@morrison.ph>
Sun, 25 Jan 2015 20:43:08 +0000 (15:43 -0500)
committernoah morrison <noah@morrison.ph>
Sun, 25 Jan 2015 20:43:08 +0000 (15:43 -0500)
commitfb3a43337ca69f18f2b702c079cce97377e1110f
tree22eafd2fe864ce3ea1f48029702be27c751d45d5
parent0ab77e60eb1e8096ce578c00ca2085cd6ea89bd0
Stop using a leaked variable. (flake8)

scope is a variable that is defined lower in the for loop
and is leaked up in a future pass.

Also this code was slightly convoluted.
The goal is to stop rendering while the current scope is falsy.
Adding a new falsy scopes for every section inside
(So it doesn't start rendering on the next end tag).

I don't really know what I was thinking when I first coded this,
but all we have to do is add False instead of whatever in the
world I was doing before.
chevron/renderer.py