Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def update_progressbar(self):
tick = {
"OK": GREEN_STR.format('.'),
"HOTFIX": BLUE_STR.format('H'),
"ERROR": RED_STR.format('E'),
"WARNING": YELLOW_STR.format('W'),
"SKIP": WHITE_STR.format('S'),
"INFO": CYAN_STR.format('I'),
"unknown": RED_STR.format('?')
}
if self.progressbar is False:
return
else:
print(tick[self.current_check["result"]], end='')
sys.stdout.flush()
def update_progressbar(self):
tick = {
"OK": GREEN_STR.format('.'),
"HOTFIX": BLUE_STR.format('H'),
"ERROR": RED_STR.format('E'),
"WARNING": YELLOW_STR.format('W'),
"SKIP": WHITE_STR.format('S'),
"INFO": CYAN_STR.format('I'),
"unknown": RED_STR.format('?')
}
if self.progressbar is False:
return
else:
print(tick[self.current_check["result"]], end='')
sys.stdout.flush()