From: Zooko O'Whielacronx Date: Tue, 23 Dec 2008 00:48:08 +0000 (-0700) Subject: util/base32: the identity trans table needn't have any contents -- we are using strin... X-Git-Url: https://git.rkrishnan.org/Site/Content/Exhibitors/nxhtml.html?a=commitdiff_plain;h=ce5effbedfc19d5acd4aacf66e770f27ab1ad620;p=tahoe-lafs%2Ftahoe-lafs.git util/base32: the identity trans table needn't have any contents -- we are using string.translate solely to delete known chars --- diff --git a/src/allmydata/util/base32.py b/src/allmydata/util/base32.py index 26661b7b..d832b57e 100644 --- a/src/allmydata/util/base32.py +++ b/src/allmydata/util/base32.py @@ -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): """