@undoc
def filehash(path):
 warn('filehash() is deprecated since IPython 4.0', DeprecationWarning, stacklevel=2)
 with open(path, 'rU') as f:
  return md5(py3compat.str_to_bytes(f.read())).hexdigest()

@ undoc def filehash ( path ) : warn ( 'filehash() is deprecated since IPython 4.0' , DeprecationWarning , stacklevel = 2 ) with open ( path , 'rU' ) as f : return md5 ( py3compat . str_to_bytes ( f . read ( ) ) ) . hexdigest ( )
make an md5 hash of a file .