Fix AuditLogDiff.__iter__ to return an actual iterable.

Fixes #589.
This commit is contained in:
Rapptz 2017-06-04 20:32:09 -04:00
parent 6135d4cd45
commit 1cf50f8054

View File

@ -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__))