don't print while displaying a progress bar

This commit is contained in:
Maximilian Hils 2016-02-14 01:44:54 +01:00
parent b902f957dd
commit fb6cbbb7ac

View File

@ -369,9 +369,8 @@ def upload_snapshot(host, port, user, private_key, private_key_password, sdist,
print("Removing {}...".format(f)) print("Removing {}...".format(f))
sftp.remove(f) sftp.remove(f)
with click.progressbar(length=os.stat(local_path).st_size) as bar:
print("Uploading {} as {}...".format(f, remote_filename)) print("Uploading {} as {}...".format(f, remote_filename))
with click.progressbar(length=os.stat(local_path).st_size) as bar:
sftp.put( sftp.put(
local_path, local_path,
"." + remote_filename, "." + remote_filename,