mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-17 13:07:32 +02:00
Override repr method for peer address network class (#1721)
This commit is contained in:
parent
0b1f0a9257
commit
307777fd4e
1 changed files with 3 additions and 0 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue