Add __format__() to Address

This commit is contained in:
Michał Sałaban 2019-10-04 14:38:17 +02:00
parent e55e2239b1
commit b70c3fbc43
2 changed files with 6 additions and 0 deletions

View file

@ -71,6 +71,9 @@ class BaseAddress(object):
def __hash__(self):
return hash(str(self))
def __format__(self, spec):
return format(str(self), spec)
class Address(BaseAddress):
"""Monero address.