File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 4444from __future__ import generator_stop
4545
4646import abc
47- import imp
4847import importlib
4948import inspect
5049import itertools
5352from sopel import loader
5453from . import exceptions
5554
56- try :
57- reload = importlib .reload
58- except AttributeError :
59- # py2: no reload function
60- # TODO: imp is deprecated, to be removed when py2 support is dropped
61- reload = imp .reload
62-
6355
6456class AbstractPluginHandler (abc .ABC ):
6557 """Base class for plugin handlers.
@@ -303,7 +295,7 @@ def reload(self):
303295
304296 This method assumes the plugin is already loaded.
305297 """
306- self ._module = reload (self ._module )
298+ self ._module = importlib . reload (self ._module )
307299
308300 def is_loaded (self ):
309301 return self ._module is not None
You can’t perform that action at this time.
0 commit comments