fixing indents
This commit is contained in:
parent
e0473a7e4d
commit
0a83a90d74
16
envsetup.py
16
envsetup.py
@ -36,15 +36,15 @@ def urldownload(confurl = ""):
|
|||||||
file_size_dl = 0
|
file_size_dl = 0
|
||||||
block_sz = 8192
|
block_sz = 8192
|
||||||
while True:
|
while True:
|
||||||
buffer = u.read(block_sz)
|
buffer = u.read(block_sz)
|
||||||
if not buffer:
|
if not buffer:
|
||||||
break
|
break
|
||||||
|
|
||||||
file_size_dl += len(buffer)
|
file_size_dl += len(buffer)
|
||||||
f.write(buffer)
|
f.write(buffer)
|
||||||
status = r"%10d [%3.2f%%]" % (file_size_dl, file_size_dl * 100. / file_size)
|
status = r"%10d [%3.2f%%]" % (file_size_dl, file_size_dl * 100. / file_size)
|
||||||
status = status + chr(8)*(len(status)+1)
|
status = status + chr(8)*(len(status)+1)
|
||||||
print status,
|
print status,
|
||||||
|
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user