aboutsummaryrefslogtreecommitdiff
path: root/discord/ext/commands/cog.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-02-28 19:47:25 -0500
committerRapptz <[email protected]>2019-02-28 19:47:25 -0500
commit076f9bcac77e67af448cc2b641a83e93d450a3bf (patch)
tree3e38d01e94cef31e454b58972a7ecba8bf1b9169 /discord/ext/commands/cog.py
parent[commands] Allow Converter instances in Greedy. Fix #1939. (diff)
downloaddiscord.py-076f9bcac77e67af448cc2b641a83e93d450a3bf.tar.xz
discord.py-076f9bcac77e67af448cc2b641a83e93d450a3bf.zip
[commands] Fix name clash overwriting T.__class__.__name__
Fixes #1944
Diffstat (limited to 'discord/ext/commands/cog.py')
-rw-r--r--discord/ext/commands/cog.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/ext/commands/cog.py b/discord/ext/commands/cog.py
index a51173b9..8e9930ed 100644
--- a/discord/ext/commands/cog.py
+++ b/discord/ext/commands/cog.py
@@ -102,8 +102,8 @@ class CogMeta(type):
except AttributeError:
continue
else:
- for name in value.__cog_listener_names__:
- listeners.append((name, value.__name__))
+ for listener_name in value.__cog_listener_names__:
+ listeners.append((listener_name, value.__name__))
attrs['__cog_commands__'] = commands # this will be copied in Cog.__new__
attrs['__cog_listeners__'] = tuple(listeners)