mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +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))
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user