We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8138fd4 commit d3bd6c7Copy full SHA for d3bd6c7
src/codex32/codex32.py
@@ -211,10 +211,9 @@ def bech32_encode(data, hrp=''):
211
ret = (hrp + '1' if hrp else '') + ''.join(CHARSET[d] for d in data)
212
if hrp.lower() == hrp:
213
return ret.lower()
214
- elif hrp.upper() == hrp:
+ if hrp.upper() == hrp:
215
return ret.upper()
216
- else:
217
- raise InvalidCase("in hrp")
+ raise InvalidCase("in hrp")
218
219
220
def bech32_to_u5(bech=''):
0 commit comments