Activate 'optimize' option by default in lsloutput.

Failure to do so caused a regression test to fail. Harmless, because that option is overriden by main, but fixed.

Bug was introduced in commit 397dc89, with the requirement that the 'optimize' option be active for output optimizations to be applied, by forgetting to update the function header to add that default option.
This commit is contained in:
Sei Lisa 2016-12-15 03:00:22 +01:00
parent 2f4f403535
commit 7fa691ead7

View file

@ -432,7 +432,8 @@ class outscript(object):
assert False, "Internal error: node type not handled: " + nt # pragma: no cover
def output(self, treesymtab, options = ('optsigns','optfloats','warntabs')):
def output(self, treesymtab, options = ('optimize',
'optsigns','optfloats','warntabs')):
# Build a sorted list of dict entries
self.tree, self.symtab = treesymtab