File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
2
import importlib
3
- import imp
4
3
import warnings
5
4
import traceback
6
5
import inspect
7
6
from labscript_utils import dedent
8
7
from labscript_utils .labconfig import LabConfig
9
8
9
+ # deal with removal of imp from python 3.12
10
+ try :
11
+ import _imp as imp
12
+ except ImportError :
13
+ import imp
14
+
10
15
"""This file contains the machinery for registering and looking up what BLACS tab and
11
16
runviewer parser classes belong to a particular labscript device. "labscript device"
12
17
here means a device that BLACS needs to communicate with. These devices have
Original file line number Diff line number Diff line change 14
14
import threading
15
15
import time
16
16
import os
17
- import imp
18
17
import site
19
18
import sysconfig
20
19
20
+ # deal with removal of imp from python 3.12
21
+ try :
22
+ import _imp as imp
23
+ except ImportError :
24
+ import imp
25
+
21
26
22
27
# Directories in which the standard library and installed packages may be located.
23
28
# Modules in these locations will be whitelisted:
You can’t perform that action at this time.
0 commit comments