diff --git a/h5py/h5py_warnings.py b/h5py/h5py_warnings.py index 491e55aae..c30c56f7f 100644 --- a/h5py/h5py_warnings.py +++ b/h5py/h5py_warnings.py @@ -11,7 +11,6 @@ This module contains the warning classes for h5py. These classes are part of the public API of h5py, and should be imported from this module. """ -from importlib import import_module class H5pyWarning(UserWarning): diff --git a/other/iterate_deadlock.py b/other/iterate_deadlock.py index 04437cb2b..0833cadd5 100644 --- a/other/iterate_deadlock.py +++ b/other/iterate_deadlock.py @@ -12,7 +12,6 @@ """ from threading import Thread -import sys import h5py diff --git a/setup_build.py b/setup_build.py index 78c6677d2..6b66789cf 100644 --- a/setup_build.py +++ b/setup_build.py @@ -14,7 +14,6 @@ import os import os.path as op from pathlib import Path -import subprocess import api_gen from setup_configure import BuildConfig diff --git a/setup_configure.py b/setup_configure.py index 61cbe78dd..16c355b0b 100644 --- a/setup_configure.py +++ b/setup_configure.py @@ -16,7 +16,6 @@ the currently installed HDF5 version. """ -from distutils.cmd import Command import os import os.path as op import re @@ -194,7 +193,6 @@ def _load_hdf5_lib(self, libdirs): libdirs: the library paths to search for the library """ - import re import ctypes # extra keyword args to pass to LoadLibrary