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