mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
segwit_addr: Use normal comparison for tuple literal (#5712)
This commit is contained in:
parent
6992e33ecb
commit
b86b3ec1d1
1 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
# Copyright (c) 2017 Pieter Wuille
|
# Copyright (c) 2017 Pieter Wuille
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
@ -118,5 +119,5 @@ def decode(hrp, addr):
|
||||||
def encode(hrp, witver, witprog):
|
def encode(hrp, witver, witprog):
|
||||||
"""Encode a segwit address."""
|
"""Encode a segwit address."""
|
||||||
ret = bech32_encode(hrp, [witver] + convertbits(witprog, 8, 5))
|
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
|
return ret
|
||||||
|
|
Loading…
Add table
Reference in a new issue