Explorar el Código

Clear line before completion message of progress bar

master
JustAnotherArchivist hace 1 año
padre
commit
3db8841ed1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      ia-upload-stream

+ 1
- 1
ia-upload-stream Ver fichero

@@ -150,7 +150,7 @@ def file_progress_bar(f, mode, description, size = None):
object.__setattr__(wrapper, mode, types.MethodType(_readwrite, wrapper))

yield wrapper
print(f'\rdone {description}, {processedSize / 1048576 :.2f} MiB in {time.time() - startTime :.1f} seconds', file = sys.stderr) # EOL when it's done
print(f'\r\x1b[Kdone {description}, {processedSize / 1048576 :.2f} MiB in {time.time() - startTime :.1f} seconds', file = sys.stderr) # EOL when it's done


@contextlib.contextmanager


Cargando…
Cancelar
Guardar