mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
don't print while displaying a progress bar
This commit is contained in:
parent
b902f957dd
commit
fb6cbbb7ac
3
rtool.py
3
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,
|
||||
|
Loading…
Reference in New Issue
Block a user