util/base32: the identity trans table needn't have any contents -- we are using string.translate solely to delete known chars

This commit is contained in:
Zooko O'Whielacronx 2008-12-22 17:48:08 -07:00
parent 3a26a4bd58
commit ce5effbedf

View File

@ -10,7 +10,7 @@ chars = rfc3548_alphabet
vals = ''.join(map(chr, range(32)))
c2vtranstable = string.maketrans(chars, vals)
v2ctranstable = string.maketrans(vals, chars)
identitytranstable = string.maketrans(chars, chars)
identitytranstable = string.maketrans('', '')
def _get_trailing_chars_without_lsbs(N, d):
"""