mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2025-10-22 14:52:21 +02:00
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:
parent
45b64625b3
commit
f519cf2352
14
master.cfg
14
master.cfg
|
@ -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 = {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user