clean up removal of tqdm

This commit is contained in:
CactiChameleon9 2020-12-10 08:44:59 +00:00
parent 4eb152b8aa
commit 4904363288
7 changed files with 220 additions and 229 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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: