core-lightning/contrib/pylightning/lightning
Rusty Russell 690064f7e0 pylightning: don't compare v with inspect._empty.
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>
2019-02-25 21:45:21 +00:00
..
__init__.py pylightning: handle msat fields in JSON more appropriately. 2019-02-21 03:44:44 +00:00
lightning.py pylightning: provide a class for Lightning JSONDecoder. 2019-02-25 21:45:21 +00:00
plugin.py pylightning: don't compare v with inspect._empty. 2019-02-25 21:45:21 +00:00