AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
update to modern python format syntax
sagarishereb18530a9854f
diff --git a/scripts/spinner.py b/scripts/spinner.pyindex df1f4ddf93..d232152926 100644--- a/scripts/spinner.py+++ b/scripts/spinner.py@@ -17,10 +17,10 @@ class Spinner:def spin(self):"""Spin the spinner"""while self.running:- sys.stdout.write(next(self.spinner) + " " + self.message + "\r")+ sys.stdout.write(f"{next(self.spinner)} {self.message}\r")sys.stdout.flush()time.sleep(self.delay)- sys.stdout.write('\r' + ' ' * (len(self.message) + 2) + '\r')+ sys.stdout.write(f"\r{' ' * (len(self.message) + 2)}\r")def __enter__(self):"""Start the spinner"""@@ -32,5 +32,5 @@ class Spinner:"""Stop the spinner"""self.running = Falseself.spinner_thread.join()- sys.stdout.write('\r' + ' ' * (len(self.message) + 2) + '\r')+ sys.stdout.write(f"\r{' ' * (len(self.message) + 2)}\r")sys.stdout.flush()