pylint: Enable and fix redefined-builtin warnings

This commit is contained in:
Kamil Śliwak
2021-12-21 15:30:11 +01:00
parent 5b10ff1216
commit dece5f4de2
7 changed files with 54 additions and 55 deletions
@@ -33,12 +33,12 @@ def parse_call(call):
return function.strip(), arguments.strip(), results.strip()
def colorize(left, right, id):
def colorize(left, right, index):
red = "\x1b[31m"
yellow = "\x1b[33m"
reset = "\x1b[0m"
colors = [red, yellow]
color = colors[id % len(colors)]
color = colors[index % len(colors)]
function, _arguments, _results = parse_call(right)
left = left.replace("compileAndRun", color + "compileAndRun" + reset)
right = right.replace("constructor", color + "constructor" + reset)