File: python3.12

package info (click to toggle)
obitools 3.0.1~b26%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,788 kB
  • sloc: ansic: 24,299; python: 657; sh: 27; makefile: 20
file content (16 lines) | stat: -rw-r--r-- 496 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
From: Michael R. Crusoe <crusoe@debian.org>
Description: Enable running on Python 3.12

find_spec is from Python 3.4
find_module was deprecated in Python 3.10 and removed in 3.12
--- obitools.orig/python/obitools3/apps/command.pyx
+++ obitools/python/obitools3/apps/command.pyx
@@ -25,7 +25,7 @@
     @rtype: module 
     '''
     
-    module = loader.find_module(name).load_module(name)
+    module = loader.find_spec(name).loader.load_module(name)
     return module
 
 def getCommandsList():