Remove truncating peerid when converting to string
This commit is contained in:
parent
8bdcc63296
commit
ae44c062df
|
@ -27,9 +27,7 @@ class ID:
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
pid = self.pretty()
|
pid = self.pretty()
|
||||||
if len(pid) <= 10:
|
return "<peer.ID %s>" % pid
|
||||||
return "<peer.ID %s>" % pid
|
|
||||||
return "<peer.ID %s*%s>" % (pid[:2], pid[len(pid)-6:])
|
|
||||||
|
|
||||||
__repr__ = __str__
|
__repr__ = __str__
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user