diff options
| author | Rapptz <[email protected]> | 2017-06-04 20:32:09 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-06-04 20:32:09 -0400 |
| commit | 1cf50f8054295cf0d4926f0c7b2a967750794412 (patch) | |
| tree | fb17becba4262bbe3a944d22d3b93a220e0800cc /discord/audit_logs.py | |
| parent | Fix typing/history showing up twice in the documentation. (diff) | |
| download | discord.py-1cf50f8054295cf0d4926f0c7b2a967750794412.tar.xz discord.py-1cf50f8054295cf0d4926f0c7b2a967750794412.zip | |
Fix AuditLogDiff.__iter__ to return an actual iterable.
Fixes #589.
Diffstat (limited to 'discord/audit_logs.py')
| -rw-r--r-- | discord/audit_logs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/audit_logs.py b/discord/audit_logs.py index dfdf6fb0..57807c0e 100644 --- a/discord/audit_logs.py +++ b/discord/audit_logs.py @@ -87,7 +87,7 @@ class AuditLogDiff: return len(self.__dict__) def __iter__(self): - return self.__dict__.items() + return iter(self.__dict__.items()) def __repr__(self): return '<AuditLogDiff attrs={0!r}>'.format(tuple(self.__dict__)) |