From b5c142ba80a989593be53f4e4bb50b3a8b7f35a2 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Thu, 5 Jan 2012 13:28:53 -0500 Subject: [PATCH] fu indents --- envsetup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/envsetup.py b/envsetup.py index d4c45cc..501c57a 100644 --- a/envsetup.py +++ b/envsetup.py @@ -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)