Better code style

This commit is contained in:
Salvo 'LtWorf' Tomaselli
2016-01-03 19:43:38 +01:00
parent 5563e1cafd
commit ce348149f1
2 changed files with 8 additions and 7 deletions

View File

@@ -70,13 +70,13 @@ def optimize_all(expression, rels, specific=True, general=True, debug=None):
for i in optimizations.specific_optimizations:
res = i(n, rels) # Performs the optimization
if res != 0 and dbg:
debug.append(n.__str__())
debug.append(str(n))
total += res
if general:
for i in optimizations.general_optimizations:
res = i(n) # Performs the optimization
if res != 0 and dbg:
debug.append(n.__str__())
debug.append(str(n))
total += res
return n.__str__()