Import ABC from collections.abc instead of collections

This is for Python 3.9 compatibility.
This commit is contained in:
Karthikeyan Singaravelan 2020-01-26 00:58:21 +05:30 committed by Rapptz
parent 1b4cac92fc
commit 25b8adc404

View File

@ -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 "