(filename)
return hasher.hexdigest()
This is to verify the file checksum is the same as the glove files we use to
	pre-computed the no. of lines in the glove file(s).
This is to verify the file checksum is the same as the glove files we use to
	pre-computed the no. of lines in the glove file(s).
This is to verify the file checksum is the same as the glove files we use to pre - computed the no . of lines in the glove file ( s ) .
def checksum(filename):
	"""
	This is to verify the file checksum is the same as the glove files we use to
	pre-computed the no. of lines in the glove file(s).
	"""
	BLOCKSIZE = 65536
	hasher = hashlib.md5()
	with open(filename, 'rb') as afile:
		buf = afile.read(BLOCKSIZE)
		while len(buf) > 0:
			hasher.update(buf)
			buf = afile.read(BLOCKSIZE)
	return hasher.hexdigest()
def checksum ( filename ) : BLOCKSIZE = 65536 hasher = hashlib . md5 ( ) with open ( filename , 'rb' ) as afile : buf = afile . read ( BLOCKSIZE ) while len ( buf ) > 0 : hasher . update ( buf ) buf = afile . read ( BLOCKSIZE ) return hasher . hexdigest ( )