File: py3.12-fix-importlib_metadata.patch

package info (click to toggle)
python-wsme 0.12.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 616 kB
  • sloc: python: 6,064; makefile: 27; javascript: 8
file content (24 lines) | stat: -rw-r--r-- 726 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Fix importlib_metadata
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2024-03-17

--- python-wsme-0.12.1.orig/wsme/protocol.py
+++ python-wsme-0.12.1/wsme/protocol.py
@@ -1,6 +1,6 @@
 import weakref
 
-import importlib_metadata
+import importlib
 
 from wsme.exc import ClientSideError
 
@@ -106,7 +106,7 @@ def register_protocol(protocol):
 def getprotocol(name, **options):
     protocol_class = registered_protocols.get(name)
     if protocol_class is None:
-        for entry_point in importlib_metadata.entry_points().select(
+        for entry_point in importlib.metadata.entry_points().select(
             group='wsme.protocols',
         ):
             if entry_point.name == name: