1 diff -aur sopel-7.1.9/sopel/plugins/handlers.py sopel-7.1.9.new/sopel/plugins/handlers.py
2 --- sopel-7.1.9/sopel/plugins/handlers.py 2022-05-01 08:25:58.000000000 +0200
3 +++ sopel-7.1.9.new/sopel/plugins/handlers.py 2023-04-24 19:43:44.483573152 +0200
5 # TODO: switch to ``importlib`` when Python2 support is dropped.
6 if self.module_type == imp.PY_SOURCE:
7 with open(self.path) as mod:
8 - description = ('.py', 'U', self.module_type)
9 + description = ('.py', 'r', self.module_type)
10 mod = imp.load_module(self.name, mod, self.path, description)
11 elif self.module_type == imp.PKG_DIRECTORY:
12 description = ('', '', self.module_type)