@@ -164,7 +164,7 @@ async def _extract_qrexec_parameters(reader):
164
164
return invoked_service , service_argument , remote_domain
165
165
166
166
167
- # pylint: disable=too-many-return-statements,too-many-arguments
167
+ # pylint: disable=too-many-return-statements,too-many-arguments,too-many-positional-arguments
168
168
async def qrexec_policy_eval (
169
169
log ,
170
170
policy_cache ,
@@ -254,7 +254,7 @@ async def qrexec_policy_eval(
254
254
255
255
# pylint: disable=too-many-arguments
256
256
async def handle_qrexec_connection (
257
- log , policy_cache , check_gui , service_name , reader , writer
257
+ reader , writer , * , log , policy_cache , check_gui , service_name
258
258
):
259
259
260
260
"""
@@ -311,17 +311,21 @@ async def start_serving(args=None):
311
311
eval_server = await asyncio .start_unix_server (
312
312
functools .partial (
313
313
handle_qrexec_connection ,
314
- log ,
315
- policy_cache ,
316
- False ,
317
- b"policy.EvalSimple" ,
314
+ log = log ,
315
+ policy_cache = policy_cache ,
316
+ check_gui = False ,
317
+ service_name = b"policy.EvalSimple" ,
318
318
),
319
319
path = args .eval_socket_path ,
320
320
)
321
321
322
322
gui_eval_server = await asyncio .start_unix_server (
323
323
functools .partial (
324
- handle_qrexec_connection , log , policy_cache , True , b"policy.EvalGUI"
324
+ handle_qrexec_connection ,
325
+ log = log ,
326
+ policy_cache = policy_cache ,
327
+ check_gui = True ,
328
+ service_name = b"policy.EvalGUI"
325
329
),
326
330
path = args .gui_socket_path ,
327
331
)
0 commit comments