master.cfg: Update imp -> importlib

imp was deprecated in python 3.4, update to importlib.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2025-09-16 12:37:38 +01:00
parent 45b64625b3
commit f519cf2352

View File

@ -2,7 +2,7 @@
# ex: set filetype=python:
import os
import imp
import importlib
import pkg_resources
from buildbot.plugins import *
@ -47,12 +47,12 @@ for entry in pkg_resources.iter_entry_points('buildbot.www'):
# configuration without having to restart buildbot.
# Note: code modules (in lib/, steps/ and reporters/) are not reloaded with a
# buildbot sighup
imp.reload(config)
imp.reload(builders)
imp.reload(schedulers)
imp.reload(workers)
imp.reload(services)
imp.reload(www)
importlib.reload(config)
importlib.reload(builders)
importlib.reload(schedulers)
importlib.reload(workers)
importlib.reload(services)
importlib.reload(www)
c = BuildmasterConfig = {}