Updated for coding style

This commit is contained in:
Dimitris Zlatanidis 2023-05-16 22:37:48 +03:00
parent 31338467dc
commit abc0f0f50f

View file

@ -28,7 +28,8 @@ class ProgressBar(Configs):
self.set_color()
if self.spinning_bar:
bar_spinner = self.spinner(f"{'':>2}{self.red}{self.ascii.bullet}{self.endc} {filename}: {message}... {self.color}")
bar_spinner = self.spinner(f"{'':>2}{self.red}{self.ascii.bullet}{self.endc} {filename}: "
f"{message}... {self.color}")
# print('\033[F', end='', flush=True)
try:
while True:
@ -37,7 +38,8 @@ class ProgressBar(Configs):
except KeyboardInterrupt:
raise SystemExit(1)
else:
print(f"{'':>2}{self.red}{self.ascii.bullet}{self.endc} {filename}: {message}... {self.color}", end='')
print(f"{'':>2}{self.red}{self.ascii.bullet}{self.endc} {filename}: "
f"{message}... {self.color}", end='')
def assign_spinners(self) -> None:
self.spinners: dict[str] = {