http: Remove default arguments from prepare callback function.

This commit is contained in:
Martin Bornhold 2016-10-04 11:37:36 +02:00
parent 65bc7e55cf
commit 3ec9d222b8

View file

@ -195,9 +195,8 @@ class HttpHooksCallbackDaemon(ThreadedHookCallbackDaemon):
self._callback_thread = None
def prepare_callback_daemon(extras, protocol=None, use_direct_calls=False):
def prepare_callback_daemon(extras, protocol, use_direct_calls):
callback_daemon = None
protocol = protocol.lower() if protocol else None
if use_direct_calls:
callback_daemon = DummyHooksCallbackDaemon()