From 5502bff9865d0a2d9be767c9590738d0fccea5bb Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 4 Dec 2022 14:03:59 +0000 Subject: [PATCH] Make _args and _kwargs private in Rpc --- deltachat-rpc-client/src/deltachat_rpc_client/rpc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py b/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py index d679770bc..174a54e2d 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py @@ -10,16 +10,16 @@ class JsonRpcError(Exception): class Rpc: def __init__(self, *args, **kwargs): """The given arguments will be passed to asyncio.create_subprocess_exec()""" - self.args = args - self.kwargs = kwargs + self._args = args + self._kwargs = kwargs async def start(self) -> None: self.process = await asyncio.create_subprocess_exec( "deltachat-rpc-server", stdin=asyncio.subprocess.PIPE, stdout=asyncio.subprocess.PIPE, - *self.args, - **self.kwargs + *self._args, + **self._kwargs ) self.event_queues: Dict[int, asyncio.Queue] = {} self.id = 0