mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-19 11:22:06 +08:00
Adds a __repr__ method for Event.
This commit is contained in:
@@ -45,3 +45,6 @@ class Event(object):
|
||||
|
||||
def __eq__(self, other):
|
||||
return self.__dict__ == other.__dict__
|
||||
|
||||
def __repr__(self):
|
||||
return "Event({0})".format(self.__dict__)
|
||||
|
||||
Reference in New Issue
Block a user