mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 21:36:30 +03:00
Make _args and _kwargs private in Rpc
This commit is contained in:
@@ -10,16 +10,16 @@ class JsonRpcError(Exception):
|
|||||||
class Rpc:
|
class Rpc:
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
"""The given arguments will be passed to asyncio.create_subprocess_exec()"""
|
"""The given arguments will be passed to asyncio.create_subprocess_exec()"""
|
||||||
self.args = args
|
self._args = args
|
||||||
self.kwargs = kwargs
|
self._kwargs = kwargs
|
||||||
|
|
||||||
async def start(self) -> None:
|
async def start(self) -> None:
|
||||||
self.process = await asyncio.create_subprocess_exec(
|
self.process = await asyncio.create_subprocess_exec(
|
||||||
"deltachat-rpc-server",
|
"deltachat-rpc-server",
|
||||||
stdin=asyncio.subprocess.PIPE,
|
stdin=asyncio.subprocess.PIPE,
|
||||||
stdout=asyncio.subprocess.PIPE,
|
stdout=asyncio.subprocess.PIPE,
|
||||||
*self.args,
|
*self._args,
|
||||||
**self.kwargs
|
**self._kwargs
|
||||||
)
|
)
|
||||||
self.event_queues: Dict[int, asyncio.Queue] = {}
|
self.event_queues: Dict[int, asyncio.Queue] = {}
|
||||||
self.id = 0
|
self.id = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user