clean up removal of tqdm
This commit is contained in:
parent
4eb152b8aa
commit
4904363288
@ -31,11 +31,10 @@ filename = os.path.basename(filename)
|
||||
filesize = int(filesize)
|
||||
# start receiving the file from the socket
|
||||
# and writing to the file stream
|
||||
progress = "_"
|
||||
|
||||
#with open(filename, "wb") as f:
|
||||
|
||||
while True:
|
||||
for _ in progress:
|
||||
# read 1024 bytes from the socket (receive)
|
||||
bytes_read = client_socket.recv(BUFFER_SIZE)
|
||||
if not bytes_read:
|
||||
|
@ -35,7 +35,6 @@ filename = os.path.basename(filename)
|
||||
filesize = int(filesize)
|
||||
# start receiving the file from the socket
|
||||
# and writing to the file stream
|
||||
progress = "_"
|
||||
#with open(filename, "wb") as f:
|
||||
|
||||
|
||||
@ -43,7 +42,6 @@ def pressRrelease_char(char):
|
||||
keyboard.press(char)
|
||||
|
||||
while True:
|
||||
for _ in progress:
|
||||
# read 1024 bytes from the socket (receive)
|
||||
bytes_read = client_socket.recv(BUFFER_SIZE)
|
||||
if not bytes_read:
|
||||
|
@ -35,7 +35,6 @@ filename = os.path.basename(filename)
|
||||
filesize = int(filesize)
|
||||
# start receiving the file from the socket
|
||||
# and writing to the file stream
|
||||
progress = "_"
|
||||
#with open(filename, "wb") as f:
|
||||
|
||||
|
||||
@ -43,7 +42,6 @@ def pressRrelease_char(char):
|
||||
keyboard.release(char)
|
||||
|
||||
while True:
|
||||
for _ in progress:
|
||||
# read 1024 bytes from the socket (receive)
|
||||
bytes_read = client_socket.recv(BUFFER_SIZE)
|
||||
if not bytes_read:
|
||||
|
@ -45,9 +45,8 @@ s.send(f"{filename}{SEPARATOR}{filesize}".encode())
|
||||
|
||||
def sendfile():
|
||||
# start sending the file
|
||||
progress = "_"
|
||||
with open(filename, "rb") as f:
|
||||
for _ in progress:
|
||||
while True:
|
||||
# read the bytes from the file
|
||||
bytes_read = f.read(BUFFER_SIZE)
|
||||
if not bytes_read:
|
||||
|
@ -44,9 +44,8 @@ s.send(f"{filename}{SEPARATOR}{filesize}".encode())
|
||||
|
||||
def sendfile():
|
||||
# start sending the file
|
||||
progress = "_"
|
||||
with open(filename, "rb") as f:
|
||||
for _ in progress:
|
||||
while True:
|
||||
# read the bytes from the file
|
||||
bytes_read = f.read(BUFFER_SIZE)
|
||||
if not bytes_read:
|
||||
|
@ -32,9 +32,8 @@ s.send(f"{filename}{SEPARATOR}{filesize}".encode())
|
||||
|
||||
def sendfile():
|
||||
# start sending the file
|
||||
progress = "_"
|
||||
with open(filename, "rb") as f:
|
||||
for _ in progress:
|
||||
while True:
|
||||
# read the bytes from the file
|
||||
bytes_read = f.read(BUFFER_SIZE)
|
||||
if not bytes_read:
|
||||
|
@ -29,9 +29,8 @@ s.send(f"{filename}{SEPARATOR}{filesize}".encode())
|
||||
|
||||
def sendfile():
|
||||
# start sending the file
|
||||
progress = "_"
|
||||
with open(filename, "rb") as f:
|
||||
for _ in progress:
|
||||
while True:
|
||||
# read the bytes from the file
|
||||
bytes_read = f.read(BUFFER_SIZE)
|
||||
if not bytes_read:
|
||||
|
Loading…
x
Reference in New Issue
Block a user