fu indents
This commit is contained in:
parent
e465469578
commit
b5c142ba80
|
@ -35,17 +35,21 @@ def urldownload(confurl = ""):
|
|||
|
||||
file_size_dl = 0
|
||||
block_sz = 8192
|
||||
|
||||
while True:
|
||||
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,
|
||||
|
||||
f.close()
|
||||
|
||||
|
||||
def confdownload():
|
||||
urldownload(confurl = vimrcurl)
|
||||
urldownload(confurl = zshrcurl)
|
||||
|
|
Loading…
Reference in New Issue