From 97e3d617482a4c5c5b9474e940058c9fb03d972c Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 15 May 2020 15:51:15 +0930 Subject: [PATCH] pyln: fix incorrect python syntax. contrib/pyln-proto/pyln/proto/bech32.py:120 /home/rusty/devel/cvs/lightning/contrib/pyln-proto/pyln/proto/bech32.py:120: SyntaxWarning: "is not" with a literal. Did you mean "!="? assert decode(hrp, ret) is not (None, None) I think this warning is correct (though I don't see the warning once I installed coincurve: are we suppressing warnings?) Signed-off-by: Rusty Russell --- contrib/pyln-proto/pyln/proto/bech32.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pyln-proto/pyln/proto/bech32.py b/contrib/pyln-proto/pyln/proto/bech32.py index 536770d73..c821ec358 100644 --- a/contrib/pyln-proto/pyln/proto/bech32.py +++ b/contrib/pyln-proto/pyln/proto/bech32.py @@ -117,5 +117,5 @@ def decode(hrp, addr): def encode(hrp, witver, witprog): """Encode a segwit address.""" ret = bech32_encode(hrp, [witver] + convertbits(witprog, 8, 5)) - assert decode(hrp, ret) is not (None, None) + assert decode(hrp, ret) != (None, None) return ret