Re: [Tutor] regarding checksum

2016-10-26 Thread Peter Otten
Clayton Kirkwood wrote: > Small problem: > Import zlib > For file in files: > checksum = zlib.adler32(file) > > traceback > checksum = zlib.adler32(file) > TypeError: a bytes-like object is required, not 'str' > > Obvious question, how do I make a bytes-like object. I've read through the

[Tutor] regarding checksum

2016-10-25 Thread Clayton Kirkwood
Small problem: Import zlib For file in files: checksum = zlib.adler32(file) traceback checksum = zlib.adler32(file) TypeError: a bytes-like object is required, not 'str' Obvious question, how do I make a bytes-like object. I've read through the documentation and didn't find a way to do th