cleanup code

This commit is contained in:
Rodolphe Marques 2017-04-03 14:31:38 +02:00 committed by vrde
parent 83a7cffc3f
commit 730b7482f6
No known key found for this signature in database
GPG Key ID: 6581C7C39B3D397D

View File

@ -7,14 +7,14 @@ class EventTypes(Enum):
BLOCK_INVALID = 2 BLOCK_INVALID = 2
class Event(object): class Event:
def __init__(self, event_type, event_data): def __init__(self, event_type, event_data):
self.type = event_type self.type = event_type
self.data = event_data self.data = event_data
class EventHandler(object): class EventHandler:
def __init__(self, events_queue): def __init__(self, events_queue):
self.events_queue = events_queue self.events_queue = events_queue