tsegwit_addr: Use normal comparison for tuple literal (#5712) - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit b86b3ec1d1e93113a9a551b0497da7076a95f29d DIR parent 6992e33ecb335cb30e4954f3920ab5ed8fa10283 HTML Author: Janus Troelsen <ysangkok@gmail.com> Date: Wed, 16 Oct 2019 23:50:17 +0000 segwit_addr: Use normal comparison for tuple literal (#5712) Diffstat: M electrum/segwit_addr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum/segwit_addr.py b/electrum/segwit_addr.py t@@ -1,3 +1,4 @@ + # Copyright (c) 2017 Pieter Wuille # # Permission is hereby granted, free of charge, to any person obtaining a copy t@@ -118,5 +119,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