Sparsen some lines

debug_tests
Tyler Goodlet 2020-08-02 22:30:03 -04:00
parent ebb21b9ba3
commit fd5fb9241a
1 changed files with 9 additions and 2 deletions

View File

@ -54,9 +54,14 @@ async def _main(
"""Async entry point for ``tractor``. """Async entry point for ``tractor``.
""" """
logger = log.get_logger('tractor') logger = log.get_logger('tractor')
main = partial(async_fn, *args) main = partial(async_fn, *args)
arbiter_addr = (host, port) = arbiter_addr or ( arbiter_addr = (host, port) = arbiter_addr or (
_default_arbiter_host, _default_arbiter_port) _default_arbiter_host,
_default_arbiter_port
)
loglevel = kwargs.get('loglevel', log.get_loglevel()) loglevel = kwargs.get('loglevel', log.get_loglevel())
if loglevel is not None: if loglevel is not None:
log._default_loglevel = loglevel log._default_loglevel = loglevel
@ -99,7 +104,9 @@ def run(
*args, *args,
name: Optional[str] = None, name: Optional[str] = None,
arbiter_addr: Tuple[str, int] = ( arbiter_addr: Tuple[str, int] = (
_default_arbiter_host, _default_arbiter_port), _default_arbiter_host,
_default_arbiter_port,
),
# either the `multiprocessing` start method: # either the `multiprocessing` start method:
# https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods # https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods
# OR `trio_run_in_process` (the new default). # OR `trio_run_in_process` (the new default).