mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
Add __format__() to Address
This commit is contained in:
parent
e55e2239b1
commit
b70c3fbc43
2 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue