diff --git a/examples/network/udp_multicast_client.py b/examples/network/udp_multicast_client.py index 0d9db65096157..803cac0857c50 100755 --- a/examples/network/udp_multicast_client.py +++ b/examples/network/udp_multicast_client.py @@ -44,7 +44,7 @@ def inet_aton(str_addr): if time.time() - t >= 3: t = time.time() - mac = wlan.config('mac') + mac = wlan.config("mac") str_to_send = f"client_ip:{client_ip}\t mac:{'-'.join(map('{:02x}'.format, mac))}" skt.sendto(str_to_send, sockaddr) print(f'GET to {sockaddr}\t sent "{str_to_send}"') @@ -60,4 +60,4 @@ def inet_aton(str_addr): skt.close() except: pass - raise(e) + raise (e) diff --git a/examples/network/udp_multicast_server.py b/examples/network/udp_multicast_server.py index 626645268c55a..0ebafc9dd02fb 100755 --- a/examples/network/udp_multicast_server.py +++ b/examples/network/udp_multicast_server.py @@ -44,7 +44,7 @@ def inet_aton(str_addr): if received: print(f'GET from {addr}\t received "{received.decode()}"') - mac = wlan.config('mac') + mac = wlan.config("mac") str_to_send = f"server_ip:{server_ip}\t mac:{'-'.join(map('{:02x}'.format, mac))}" skt.sendto(str_to_send, sockaddr) print(f'ACK to {sockaddr}\t sent "{str_to_send}"') @@ -56,4 +56,4 @@ def inet_aton(str_addr): skt.close() except: pass - raise(e) + raise (e)