Archived
saving dependency work
This commit is contained in:
@@ -29,9 +29,14 @@ class SpinnerInterface(object):
|
||||
|
||||
|
||||
class InteractiveSpinner(SpinnerInterface):
|
||||
def __init__(self, message, file=None, spin_chars="-\\|/",
|
||||
# Empirically, 8 updates/second looks nice
|
||||
min_update_interval_seconds=0.125):
|
||||
def __init__(
|
||||
self,
|
||||
message,
|
||||
file=None,
|
||||
spin_chars="-\\|/",
|
||||
# Empirically, 8 updates/second looks nice
|
||||
min_update_interval_seconds=0.125,
|
||||
):
|
||||
# type: (str, IO[str], str, float) -> None
|
||||
self._message = message
|
||||
if file is None:
|
||||
@@ -106,8 +111,7 @@ class NonInteractiveSpinner(SpinnerInterface):
|
||||
# type: (str) -> None
|
||||
if self._finished:
|
||||
return
|
||||
self._update(
|
||||
"finished with status '{final_status}'".format(**locals()))
|
||||
self._update("finished with status '{final_status}'".format(**locals()))
|
||||
self._finished = True
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user