diff options
| author | 2019-10-05 20:49:42 +1000 | |
|---|---|---|
| committer | 2019-10-05 20:49:42 +1000 | |
| commit | dffe89248c42839e690dcfe4db115b9ef12fdb39 (patch) | |
| tree | d4ae541ff19c507bda19483af7d0fa519643578b | |
| parent | properly send message with `asyncio.run` (diff) | |
fix linter
| -rw-r--r-- | bot/cogs/utils.py | 3 |
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: |