Add default value for on_stop when constructing Reactor

This commit is contained in:
Ole André Vadla Ravnås
2015-06-07 17:51:47 +02:00
parent 2692e8140b
commit 7fe4fb11dc
+1 -1
View File
@@ -248,7 +248,7 @@ def expand_target(target):
class Reactor(object):
def __init__(self, run_until_return, on_stop):
def __init__(self, run_until_return, on_stop=None):
self._running = False
self._run_until_return = run_until_return
self._on_stop = on_stop