Apply suggestions from code review

Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
This commit is contained in:
Diederik Loerakker 2019-06-04 15:22:34 +02:00 committed by GitHub
parent 6d55ba9c8c
commit 8631cad251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,6 +109,7 @@ def pack(values, subtype):
def chunkify(bytez):
# pad `bytez` to nearest 32-byte multiple
bytez += b'\x00' * (-len(bytez) % 32)
return [bytez[i:i + 32] for i in range(0, len(bytez), 32)]