def md5sum(filename, blocksize=<NUM_LIT>):
with open(filename, '<STR_LIT:rb>') as fh:<EOL><INDENT>m = hashlib.md5()<EOL>while True:<EOL><INDENT>data = fh.read(blocksize)<EOL>if not data:<EOL><INDENT>break<EOL><DEDENT>m.update(data)<EOL><DEDENT>return m.hexdigest()<EOL><DEDENT>
Returns the MD5 checksum of a file