bytes/str.ljust()def pad(b, n=16, c=b"\x0f"):... length = (len(b)+n-1)//n*n ... return b.ljust(length, c)
Thanks! -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- https://mail.python.org/mailman/listinfo/python-list