From fb6cbbb7ace51f504a92fa4dbf6304a7ee6995d1 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 14 Feb 2016 01:44:54 +0100 Subject: [PATCH] don't print while displaying a progress bar --- rtool.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rtool.py b/rtool.py index b0f29b8bb..de865b300 100644 --- a/rtool.py +++ b/rtool.py @@ -369,9 +369,8 @@ def upload_snapshot(host, port, user, private_key, private_key_password, sdist, print("Removing {}...".format(f)) sftp.remove(f) - + print("Uploading {} as {}...".format(f, remote_filename)) with click.progressbar(length=os.stat(local_path).st_size) as bar: - print("Uploading {} as {}...".format(f, remote_filename)) sftp.put( local_path, "." + remote_filename,