From 4d74574eddd8af366cdb54f43f494f983eca82b1 Mon Sep 17 00:00:00 2001 From: Sami Khan Date: Fri, 30 Jan 2026 15:32:57 +0500 Subject: [PATCH] formatting --- src/exo/master/api.py | 4 +++- src/exo/plugins/implementations/flash/placement.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/exo/master/api.py b/src/exo/master/api.py index ed2ef827..66d1a52e 100644 --- a/src/exo/master/api.py +++ b/src/exo/master/api.py @@ -333,7 +333,9 @@ class API: # stdout/stderr pipe fds. Using PIPE would cause communicate() to hang # because the daemon child never closes them. Use DEVNULL instead. is_daemonize = "--daemonize" in cmd_str - out_mode = asyncio.subprocess.DEVNULL if is_daemonize else asyncio.subprocess.PIPE + out_mode = ( + asyncio.subprocess.DEVNULL if is_daemonize else asyncio.subprocess.PIPE + ) if needs_shell: process = await asyncio.create_subprocess_shell( diff --git a/src/exo/plugins/implementations/flash/placement.py b/src/exo/plugins/implementations/flash/placement.py index 28d9880d..514c7341 100644 --- a/src/exo/plugins/implementations/flash/placement.py +++ b/src/exo/plugins/implementations/flash/placement.py @@ -120,7 +120,7 @@ def place_flash_instance( # Prefer private network IPs (10.x, 192.168.x) over Tailscale CGNAT (100.64-127.x) chosen_ip: str | None = None for ip in candidate_ips: - if ip.startswith("10.") or ip.startswith("192.168."): + if ip.startswith(("10.", "192.168.")): chosen_ip = ip break if chosen_ip is None and candidate_ips: