mirror of
https://github.com/httpie/cli.git
synced 2025-01-05 21:29:12 +01:00
Simplify spinner_pos calculation a little (#1111)
This commit is contained in:
parent
64c31d554a
commit
aee77a23af
@ -451,9 +451,7 @@ class ProgressReporterThread(threading.Thread):
|
||||
)
|
||||
self.output.flush()
|
||||
|
||||
self._spinner_pos = (self._spinner_pos + 1
|
||||
if self._spinner_pos + 1 != len(SPINNER)
|
||||
else 0)
|
||||
self._spinner_pos = (self._spinner_pos + 1) % len(SPINNER)
|
||||
|
||||
def sum_up(self):
|
||||
actually_downloaded = (
|
||||
|
Loading…
Reference in New Issue
Block a user