mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-02-23 15:03:25 +00:00
Fixed indentation
This commit is contained in:
parent
3d7c09645c
commit
6b750e4c1d
1 changed files with 2 additions and 2 deletions
|
@ -59,9 +59,9 @@ class Application:
|
||||||
def subscribe(func):
|
def subscribe(func):
|
||||||
self.callbacks[event].append(func)
|
self.callbacks[event].append(func)
|
||||||
return func
|
return func
|
||||||
if func is None:
|
if func is None:
|
||||||
return subscribe
|
return subscribe
|
||||||
subscribe(func)
|
subscribe(func)
|
||||||
def emit(self, event, message):
|
def emit(self, event, message):
|
||||||
for callback in self.callbacks[event]:
|
for callback in self.callbacks[event]:
|
||||||
callback(message)
|
callback(message)
|
||||||
|
|
Loading…
Reference in a new issue