Changed roundvalue function to round_value.

这个提交包含在:
Craig Warren
2016-01-14 18:09:09 +00:00
父节点 ddcd57348d
当前提交 88d99faf0c

查看文件

@@ -74,13 +74,13 @@ def update_progress(progress):
# Modify this to change the length of the progress bar
barLength = 50
block = roundvalue(barLength * progress)
block = round_value(barLength * progress)
text = '\r|{}| {:2.1f}%'.format( '#' * block + '-' * (barLength - block), progress * 100)
sys.stdout.write(text)
sys.stdout.flush()
def roundvalue(value, decimalplaces=0):
def round_value(value, decimalplaces=0):
"""Rounding function.
Args: