From f9e859a8e97da3518041e2fd577e3f54d1067074 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Tue, 13 Aug 2019 18:18:29 -0700 Subject: [PATCH] Clean up peer.ID --- libp2p/peer/id.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libp2p/peer/id.py b/libp2p/peer/id.py index 9e39cf0..d9f0dc5 100644 --- a/libp2p/peer/id.py +++ b/libp2p/peer/id.py @@ -28,10 +28,10 @@ class ID: self._b58_str = base58.b58encode(self._bytes).decode() return self._b58_str - def __bytes__(self) -> bytes: - return self._bytes + def __repr__(self) -> str: + return "" - __repr__ = __str__ = pretty = to_string = to_base58 + __str__ = pretty = to_string = to_base58 def __eq__(self, other: object) -> bool: if isinstance(other, str):