From f81b4bcf53270131a72369ca62723acb6fb94ec8 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Sat, 15 May 2021 00:02:15 +0000 Subject: [PATCH] Restyled by yapf --- librespot/ZeroconfServer.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/librespot/ZeroconfServer.py b/librespot/ZeroconfServer.py index b691ad2..bb2c6f4 100644 --- a/librespot/ZeroconfServer.py +++ b/librespot/ZeroconfServer.py @@ -19,7 +19,8 @@ class ZeroconfServer(Closeable): __keys: DiffieHellman __inner: ZeroconfServer.Inner - def __init__(self, inner: ZeroconfServer.Inner, listen_port: int, listen_all: bool): + def __init__(self, inner: ZeroconfServer.Inner, listen_port: int, + listen_all: bool): self.__inner = inner self.__keys = DiffieHellman() @@ -73,15 +74,13 @@ class ZeroconfServer(Closeable): self.conf = conf self.device_type = device_type self.device_name = device_name - self.device_id = ( - device_id if device_id is not None else Utils.random_hex_string(40) - ) + self.device_id = (device_id if device_id is not None else + Utils.random_hex_string(40)) class HttpRunner(Runnable, Closeable): __sock: socket __executorService: concurrent.futures.ThreadPoolExecutor = ( - concurrent.futures.ThreadPoolExecutor() - ) + concurrent.futures.ThreadPoolExecutor()) __shouldStop: bool = False def __init__(self, port: int):