hopefully this fixes it
This commit is contained in:
parent
b5c142ba80
commit
9085406aad
@ -40,16 +40,13 @@ def urldownload(confurl = ""):
|
|||||||
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()
|
||||||
|
|
||||||
|
|
||||||
def confdownload():
|
def confdownload():
|
||||||
urldownload(confurl = vimrcurl)
|
urldownload(confurl = vimrcurl)
|
||||||
urldownload(confurl = zshrcurl)
|
urldownload(confurl = zshrcurl)
|
||||||
|
Loading…
Reference in New Issue
Block a user