clean up removal of tqdm
This commit is contained in:
parent
4904363288
commit
b9c4b014c2
@ -37,14 +37,12 @@ filename = os.path.basename(filename)
|
|||||||
filesize = int(filesize)
|
filesize = int(filesize)
|
||||||
# start receiving the file from the socket
|
# start receiving the file from the socket
|
||||||
# and writing to the file stream
|
# and writing to the file stream
|
||||||
progress = "_"
|
|
||||||
#with open(filename, "wb") as f:
|
#with open(filename, "wb") as f:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
for _ in progress:
|
|
||||||
# read 1024 bytes from the socket (receive)
|
# read 1024 bytes from the socket (receive)
|
||||||
bytes_read = client_socket.recv(BUFFER_SIZE)
|
bytes_read = client_socket.recv(BUFFER_SIZE)
|
||||||
if not bytes_read:
|
if not bytes_read:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user