summaryrefslogtreecommitdiff
path: root/poezio/events.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-11-12 15:03:09 +0100
committermathieui <mathieui@mathieui.net>2017-11-12 15:03:09 +0100
commitd55cc5872503567775f0d7a7731d6f489bf2299b (patch)
tree725f9e7b8144d36054447b3c82edfb45bda8df1d /poezio/events.py
parent92496db823db34f7f7fb1ab31eaef093a707c3e8 (diff)
downloadpoezio-d55cc5872503567775f0d7a7731d6f489bf2299b.tar.gz
poezio-d55cc5872503567775f0d7a7731d6f489bf2299b.tar.bz2
poezio-d55cc5872503567775f0d7a7731d6f489bf2299b.tar.xz
poezio-d55cc5872503567775f0d7a7731d6f489bf2299b.zip
yapf -ir
Diffstat (limited to 'poezio/events.py')
-rw-r--r--poezio/events.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/poezio/events.py b/poezio/events.py
index 97d77626..15a308b4 100644
--- a/poezio/events.py
+++ b/poezio/events.py
@@ -3,13 +3,13 @@
#
# Poezio is free software: you can redistribute it and/or modify
# it under the terms of the zlib license. See the COPYING file.
-
"""
Defines the EventHandler class.
The list of available events is here:
http://poezio.eu/doc/en/plugins.html#_poezio_events
"""
+
class EventHandler(object):
"""
A class keeping a list of possible events that are triggered
@@ -17,6 +17,7 @@ class EventHandler(object):
associated with an event name, and whenever that event is triggered,
the callback is called.
"""
+
def __init__(self):
self.events = {
'highlight': [],
@@ -43,7 +44,7 @@ class EventHandler(object):
'send_normal_presence': [],
'ignored_private': [],
'tab_change': [],
- }
+ }
def add_event_handler(self, name, callback, position=0):
"""