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 this.

Thanks,

Clayton

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to