Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
py35 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
doudz committed Oct 29, 2020
1 parent 51de248 commit ddb0e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zigate/flasher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ddb0e62

Please sign in to comment.