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

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