Rename AsyncIterator.get to next to prevent shadowing.

This commit is contained in:
Rapptz committed 2017-07-04 10:45:38 -04:00
1 parent 94eb938d29
commit e0f02f1775
4 files changed
+26 -13

No files matched your search

+1 -1
View File
@@ -137,7 +137,7 @@ class Reaction:
iterator = reaction.users()
while True:
try:
user = yield from iterator.get()
user = yield from iterator.next()
except discord.NoMoreItems:
break
else: