sb: Add visual feedback for http type downloads.

This commit is contained in:
Chris Johns
2014-07-29 10:04:55 +10:00
parent 48373509b7
commit c49e500042
2 changed files with 58 additions and 4 deletions

View File

@@ -58,6 +58,10 @@ def _output(text = os.linesep, log = None):
for l in text.replace(chr(13), '').splitlines():
print l
def stdout_raw(text = os.linesep):
print text,
sys.stdout.flush()
def stderr(text = os.linesep, log = None):
for l in text.replace(chr(13), '').splitlines():
print >> sys.stderr, l