aboutsummaryrefslogtreecommitdiff
path: root/app/ui/taskview.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/ui/taskview.py')
-rw-r--r--app/ui/taskview.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/app/ui/taskview.py b/app/ui/taskview.py
index 0d3b445..c5c2ff7 100644
--- a/app/ui/taskview.py
+++ b/app/ui/taskview.py
@@ -52,15 +52,9 @@ from ui.viewkit import (TERMINAL_PHASES as _TERMINAL,
ScreenView, _box, _fit, _format_elapsed, _sep,
_text)
-# Redraw cadence for the timed getch (milliseconds).
-_DRAW_TIMEOUT_MS = 250
-
# How many recent output lines the log tail keeps.
_LOG_TAIL = 10
-# Terminal state: the run is over and the screen waits for a key.
-_TERMINAL = ("done", "error", "cancelled")
-
# Progress-line matchers, in order of precedence.
_PROGRESS_BYTES = re.compile(r"AUDIOCPP_PROGRESS downloaded=(\d+) total=(\d+)")
_PROGRESS_PERCENT = re.compile(r"(\d{1,3})%")
@@ -592,7 +586,6 @@ class _LaneState:
self.finished = False
-
class _GetchModes:
"""The blocking/non-blocking getch switching shared by all views."""
@@ -836,7 +829,7 @@ class LanesView(_GetchModes):
rects = [(1, 1, width - 2, top_h),
(1, 2 + top_h, width - 2, inner_h - top_h - 1)]
- for lane, (x, y, w, h) in zip(self._lanes, rects):
+ for lane, (x, y, w, h) in zip(self._lanes, rects, strict=False):
self._draw_pane(curses, theme, x, y, w, h, lane, terminal)
if self.phase == "done":