From 7c8e5a67328f951f629f9ba0dc31e19692b206fb Mon Sep 17 00:00:00 2001 From: goodboy Date: Thu, 16 Apr 2026 17:45:38 -0400 Subject: [PATCH] Drop `snippets/multiaddr_ex.py` scratch script Since we no longer need the example after integrating `multiaddr` into the `.discovery` subsys. (this commit msg was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code --- snippets/multiaddr_ex.py | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 snippets/multiaddr_ex.py diff --git a/snippets/multiaddr_ex.py b/snippets/multiaddr_ex.py deleted file mode 100644 index 5e1bb2f8..00000000 --- a/snippets/multiaddr_ex.py +++ /dev/null @@ -1,13 +0,0 @@ -from pathlib import Path -from multiaddr import Multiaddr - -# construct from a string -m1 = Multiaddr("/ip4/127.0.0.1/udp/1234") -m2 = Multiaddr("/unix/run/user/1000/sway-ipc.1000.1557.sock") -for key in m1.protocols(): - key - -uds_sock_path = Path(m2.values()[0]) -uds_sock_path -uds_sock_path.is_file() -uds_sock_path.is_socket()