testing: remove enlighten module since it was buggy

This commit is contained in:
Jakub Jezek 2023-01-04 13:22:47 +01:00
parent 7e73aba4ae
commit 360ff07417
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -1,4 +1,3 @@
import enlighten
import os
import re
import urllib
@ -264,15 +263,9 @@ class RemoteFileHandler:
response_gen, destination,
):
with open(destination, "wb") as f:
pbar = enlighten.Counter(
total=None, desc="Save content", units="%", color="green")
progress = 0
for chunk in response_gen:
if chunk: # filter out keep-alive new chunks
f.write(chunk)
progress += len(chunk)
pbar.close()
@staticmethod
def _quota_exceeded(first_chunk):