diff options
| author | Karthikeyan Singaravelan <[email protected]> | 2020-01-26 00:58:21 +0530 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-01-25 21:46:33 -0500 |
| commit | 25b8adc404373e63d22183d6309b32b3333e97a9 (patch) | |
| tree | e8f9765bf30aeaddc70335e0fe308558c49466e2 /discord/ext/commands/bot.py | |
| parent | Fix warnings regarding invalid escape sequences. (diff) | |
| download | discord.py-25b8adc404373e63d22183d6309b32b3333e97a9.tar.xz discord.py-25b8adc404373e63d22183d6309b32b3333e97a9.zip | |
Import ABC from collections.abc instead of collections
This is for Python 3.9 compatibility.
Diffstat (limited to 'discord/ext/commands/bot.py')
| -rw-r--r-- | discord/ext/commands/bot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 20dc94de..9280136d 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -792,7 +792,7 @@ class BotBase(GroupMixin): except TypeError: # It's possible that a generator raised this exception. Don't # replace it with our own error if that's the case. - if isinstance(ret, collections.Iterable): + if isinstance(ret, collections.abc.Iterable): raise raise TypeError("command_prefix must be plain string, iterable of strings, or callable " |