aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mathsman5133 <[email protected]>2019-10-05 20:49:42 +1000
committerGravatar mathsman5133 <[email protected]>2019-10-05 20:49:42 +1000
commitdffe89248c42839e690dcfe4db115b9ef12fdb39 (patch)
treed4ae541ff19c507bda19483af7d0fa519643578b
parentproperly send message with `asyncio.run` (diff)
fix linter
-rw-r--r--bot/cogs/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/cogs/utils.py b/bot/cogs/utils.py
index fd30f4321..32f7ee208 100644
--- a/bot/cogs/utils.py
+++ b/bot/cogs/utils.py
@@ -1,7 +1,7 @@
import logging
import re
import unicodedata
-from asyncio import TimeoutError, sleep, run
+from asyncio import TimeoutError, run, sleep
from contextlib import suppress
from email.parser import HeaderParser
from io import StringIO
@@ -132,6 +132,7 @@ class Utils(Cog):
@staticmethod
def readable_time(seconds: int) -> str:
+ """Returns a number of seconds into a human-readable minutes/seconds combination."""
minutes, seconds = divmod(seconds, 60)
if minutes: