def appendZeroLenPadding(str, blocksize=AES_blocksize):
  'Pad with zeroes except make the last byte equal to the number of padding bytes'
  pad_len = 1 - paddingLength(len(str), blocksize)
  
  padding = '\0'*pad_len+chr(pad_len)
  
  return str + padding
dataset/ETHPy150Open keenlabs/KeenClient-Python/keen/Padding.py/appendZeroLenPadding/swapped operands of `-`