Override repr method for peer address network class (#1721)

This commit is contained in:
Jonathan Zernik 2021-10-24 19:25:24 -05:00 committed by GitHub
parent 0b1f0a9257
commit 307777fd4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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."""