From 307777fd4eaf848e7b7eb6b723b9871ef9d7a791 Mon Sep 17 00:00:00 2001 From: Jonathan Zernik Date: Sun, 24 Oct 2021 19:25:24 -0500 Subject: [PATCH] Override repr method for peer address network class (#1721) --- squeaknode/core/peer_address.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/squeaknode/core/peer_address.py b/squeaknode/core/peer_address.py index 4cbf3b74..2635c3e6 100644 --- a/squeaknode/core/peer_address.py +++ b/squeaknode/core/peer_address.py @@ -31,6 +31,9 @@ class Network(Enum): I2P = b'\x05' CJDNS = b'\x06' + def __repr__(self): + return str(self) + class PeerAddress(NamedTuple): """Class for representing a remote peer address."""