mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-28 12:51:29 +08:00
Adds a __repr__ method for Event.
This commit is contained in:
1 parent
21da812c10
commit
8f6ff20e6a
1 file changed
+3
@@ -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