Skip to content
This repository was archived by the owner on Oct 12, 2024. It is now read-only.

Commit 218dbc3

Browse files
authored
Update __init__.py
1 parent 7f6e502 commit 218dbc3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

common/__init__.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ async def loader(self):
4242
if not self.using.is_set():
4343
await self.using.wait()
4444
await aprint(Colorate.Horizontal(Colors.rainbow,
45-
"[%s] %s" %
46-
(next(self.dots),
47-
self.loading_text)),
45+
f"[{next(self.dots)}] {self.loading_text}"),
4846
end="\r")
4947
await sleep(.05)
5048

@@ -98,7 +96,7 @@ async def handle(self, inp):
9896
elif await tools_handle(self, cmd, *args):
9997
pass
10098
elif cmd:
101-
await self.error("\"%s\" command not found" % cmd.lower())
99+
await self.error(f"\"{cmd.lower()}\" command not found")
102100

103101
except Exception as e:
104102
self.using.clear()

0 commit comments

Comments
 (0)