Tidy up progress bar display code

This commit is contained in:
dbr
2008-11-08 17:48:23 +10:30
parent 2f07fa10e2
commit 1be8f4445f

View File

@@ -126,7 +126,7 @@ def copy_with_prog(src_file, dest_file, overwrite = False, block_size = 512):
cur_block_pos += block_size
sys.stdout.write(
'\r' + str(prgb) + '\r'
'\r%s\r' % str(prgb)
)
# If it's the end of file