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