On Wed, Dec 31, 2008 at 4:00 AM, Brendan Cully <brendan at kublai.com> wrote: > + # Trim padding > + olen = l % 4 > + if olen: > + olen += 1 > + olen += l / 4 * 5 > + return out[:olen] Same division problem here, but I think you could simply write it as overhead = (4-l)%4 if overhead: return out[:-overhead] else: return out