Browse Source

pylightning: adds Millisatoshi __radd__ method for sum()

pull/2803/head
Michael Schmoock 6 years ago
committed by Christian Decker
parent
commit
c0069d8944
  1. 3
      contrib/pylightning/lightning/lightning.py

3
contrib/pylightning/lightning/lightning.py

@ -157,6 +157,9 @@ class Millisatoshi:
def __mod__(self, other):
return Millisatoshi(int(self) % other)
def __radd__(self, other):
return Millisatoshi(int(self) + int(other))
class UnixDomainSocketRpc(object):
def __init__(self, socket_path, executor=None, logger=logging, encoder_cls=json.JSONEncoder, decoder=json.JSONDecoder()):

Loading…
Cancel
Save