From 1cf50f8054295cf0d4926f0c7b2a967750794412 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 4 Jun 2017 20:32:09 -0400 Subject: [PATCH] Fix AuditLogDiff.__iter__ to return an actual iterable. Fixes #589. --- discord/audit_logs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/audit_logs.py b/discord/audit_logs.py index dfdf6fb05..57807c0e2 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 ''.format(tuple(self.__dict__))