diff --git a/zigate/flasher.py b/zigate/flasher.py index 74edd26c..abbdce3e 100644 --- a/zigate/flasher.py +++ b/zigate/flasher.py @@ -304,7 +304,7 @@ def printProgressBar (iteration, total, prefix = '', suffix = '', decimals = 1, percent = ("{0:." + str(decimals) + "f}").format(100 * (iteration / float(total))) filledLength = int(length * iteration // total) bar = fill * filledLength + '-' * (length - filledLength) - print(f'\r{prefix} |{bar}| {percent}% {suffix}', end = printEnd) + print('\r{0} |{1}| {2}% {3}'.format(prefix, bar, percent, suffix), end = printEnd) # Print New Line on Complete if iteration == total: print()