archrelease: copy trunk to community-any
[ArchLinux/community.git] / sopel / repos / community-any / open-U-deprecated.patch
bloba347b77e08846fcd83d77fdbb64009e7c2423356
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
4 @@ -432,7 +432,7 @@
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)