Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information