Blob Blame History Raw
--- astropy_helpers-4.0.1/astropy_helpers/utils.py.orig	2021-05-15 15:58:50.590347000 +0900
+++ astropy_helpers-4.0.1/astropy_helpers/utils.py	2023-07-07 23:40:04.190638757 +0900
@@ -1,7 +1,6 @@
 # Licensed under a 3-clause BSD style license - see LICENSE.rst
 
 import contextlib
-import imp
 import os
 import sys
 import glob
@@ -54,9 +53,9 @@
     import builtins
     if hasattr(builtins, '__NUMPY_SETUP__'):
         del builtins.__NUMPY_SETUP__
-    import imp
+    import importlib
     import numpy
-    imp.reload(numpy)
+    importlib.reload(numpy)
 
     try:
         numpy_include = numpy.get_include()