Use importlib not imp

The imp module is gone from Python 3.12, but importlib has
the same reload() function. Let's use it.

Change-Id: Iab4381e743a443285a86941de195189e26e9e0fc
This commit is contained in:
Thomas Goirand 2023-12-12 16:58:53 +01:00
parent a6f1d2b96e
commit b70478452d
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
import unittest
from unittest import mock
from imp import reload
from importlib import reload
from os_ken.cmd.manager import main

View File

@ -16,7 +16,7 @@
# vim: tabstop=4 shiftwidth=4 softtabstop=4
from imp import reload
from importlib import reload
import unittest
import logging