From 6e019b83c2f82552704feb4d8ce18e0d3a19d75a Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 23 Sep 2019 13:42:05 +0200 Subject: use ArchiveArtifacts for all benchmark resources --- src/util.py | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/util.py') diff --git a/src/util.py b/src/util.py index 8b9e585..dc66186 100644 --- a/src/util.py +++ b/src/util.py @@ -24,18 +24,6 @@ import sys import src.globalvars -def download_reporthook(blocknum, blocksize, totalsize): - """Status report hook for urlretrieve""" - readsofar = blocknum * blocksize - if totalsize > 0: - percent = readsofar * 100 / totalsize - status = "\r%5.1f%% %*d / %d" % ( - percent, len(str(totalsize)), readsofar, totalsize) - sys.stderr.write(status) - else: # total size is unknown - sys.stderr.write(f"\rdownloaded {readsofar}") - - def is_exe(fpath): """Check if the given path is an exexutable file""" return os.path.isfile(fpath) and os.access(fpath, os.X_OK) -- cgit v1.2.3