##// END OF EJS Templates
removed filehash in IPython/utils/path.py #10616
Aditya Sathe -
Show More
@@ -13,7 +13,6 b' import shutil'
13 import random
13 import random
14 import glob
14 import glob
15 from warnings import warn
15 from warnings import warn
16 from hashlib import md5
17
16
18 from IPython.utils.process import system
17 from IPython.utils.process import system
19 from IPython.utils import py3compat
18 from IPython.utils import py3compat
@@ -365,13 +364,6 b' def target_update(target,deps,cmd):'
365 if target_outdated(target,deps):
364 if target_outdated(target,deps):
366 system(cmd)
365 system(cmd)
367
366
368 @undoc
369 def filehash(path):
370 """Make an MD5 hash of a file, ignoring any differences in line
371 ending characters."""
372 warn("filehash() is deprecated since IPython 4.0", DeprecationWarning, stacklevel=2)
373 with open(path, "rU") as f:
374 return md5(py3compat.str_to_bytes(f.read())).hexdigest()
375
367
376 ENOLINK = 1998
368 ENOLINK = 1998
377
369
General Comments 0
You need to be logged in to leave comments. Login now