Made the data attribute of Event optional

This commit is contained in:
Paulus Schoutsen committed 2013-09-23 00:38:36 -07:00
1 parent 4f7e032bb4
commit 6fbadc24e4
2 files changed
+1 -1

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ class EventBus(object):
class Event(object):
""" An event to be sent over the eventbus. """
def __init__(self, event_type, data):
def __init__(self, event_type, data={}):
self.event_type = event_type
self.data = data
self.stop_propegating = False
File renamed without changes.