diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2020-03-24 22:24:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-24 22:24:25 +0000 |
commit | 974a54058fe52ead24bc54a0015d3e065f78f5e3 (patch) | |
tree | 04fd170a013a025afa1cd66d118199065ef36c19 /numpy/f2py/tests/util.py | |
parent | e1968acbedfb312b47993ac2869a5f544383195b (diff) | |
parent | b6e5569ec3461b07ac5a0031b2d02af268dded8f (diff) | |
download | numpy-974a54058fe52ead24bc54a0015d3e065f78f5e3.tar.gz |
Merge pull request #15830 from rth/import-fixes-mypy
MAINT: pathlib and hashlib are in stdlib in Python 3.5+
Diffstat (limited to 'numpy/f2py/tests/util.py')
-rw-r--r-- | numpy/f2py/tests/util.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/f2py/tests/util.py b/numpy/f2py/tests/util.py index 6dcc2ed12..c5b06697d 100644 --- a/numpy/f2py/tests/util.py +++ b/numpy/f2py/tests/util.py @@ -19,10 +19,7 @@ from numpy.compat import asbytes, asstr from numpy.testing import temppath from importlib import import_module -try: - from hashlib import md5 -except ImportError: - from md5 import new as md5 # noqa: F401 +from hashlib import md5 # # Maintaining a temporary module directory |