# HG changeset patch # User Martin Bornhold # Date 2016-10-04 09:37:36 # Node ID 85c844b75c306a1066e82699e32160acd1df3487 # Parent ebfb39d8442a00375c146a2b0b4f7e8efaf4b6b7 http: Remove default arguments from prepare callback function. diff --git a/rhodecode/lib/hooks_daemon.py b/rhodecode/lib/hooks_daemon.py --- a/rhodecode/lib/hooks_daemon.py +++ b/rhodecode/lib/hooks_daemon.py @@ -195,9 +195,8 @@ class HttpHooksCallbackDaemon(ThreadedHo 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()