From 9672bf3c2ccb4fc10fb5680d92221b084073c92b Mon Sep 17 00:00:00 2001 From: Matthew Gidden Date: Wed, 3 May 2017 10:15:00 -0500 Subject: [PATCH] update md5 function name --- xarray/tutorial.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xarray/tutorial.py b/xarray/tutorial.py index b54c4cd5c7d..d7da63a328e 100644 --- a/xarray/tutorial.py +++ b/xarray/tutorial.py @@ -20,7 +20,7 @@ _default_cache_dir = _os.sep.join(('~', '.xarray_tutorial_data')) -def _md5(fname): +def file_md5_checksum(fname): hash_md5 = hashlib.md5() with open(fname, "rb") as f: hash_md5.update(f.read()) @@ -71,7 +71,7 @@ def load_dataset(name, cache=True, cache_dir=_default_cache_dir, url = '/'.join((github_url, 'raw', branch, md5name)) _urlretrieve(url, md5file) - localmd5 = _md5(localfile) + localmd5 = file_md5_checksum(localfile) with open(md5file, 'r') as f: remotemd5 = f.read() if localmd5 != remotemd5: