fixing indents

This commit is contained in:
staticsafe 2012-01-05 13:24:48 -05:00
parent e0473a7e4d
commit 0a83a90d74
1 changed files with 8 additions and 8 deletions

View File

@ -36,15 +36,15 @@ def urldownload(confurl = ""):
file_size_dl = 0
block_sz = 8192
while True:
buffer = u.read(block_sz)
if not buffer:
break
buffer = u.read(block_sz)
if not buffer:
break
file_size_dl += len(buffer)
f.write(buffer)
status = r"%10d [%3.2f%%]" % (file_size_dl, file_size_dl * 100. / file_size)
status = status + chr(8)*(len(status)+1)
print status,
file_size_dl += len(buffer)
f.write(buffer)
status = r"%10d [%3.2f%%]" % (file_size_dl, file_size_dl * 100. / file_size)
status = status + chr(8)*(len(status)+1)
print status,
f.close()