mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-23 06:55:13 +01:00
I originally converted input JSON naively into Millisatoshi, and the result was a strange failure in Millisatoshi.__eq__. It seems this is because inspect._empty.__eq__(Millisatoshi) raises NotImplemented, and so it tries Millisatoshi.__eq__(inspect._empty) which doesn't like it. 'is' is the correct test here, AFAICT, and doesn't suffer from these problems. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> |
||
---|---|---|
.. | ||
__init__.py | ||
lightning.py | ||
plugin.py |