File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 11import os
22import importlib
3- import imp
43import warnings
54import traceback
65import inspect
76from labscript_utils import dedent
87from labscript_utils .labconfig import LabConfig
98
9+ # deal with removal of _imp from new python
10+ try :
11+ import _imp as imp
12+ except ImportError :
13+ import imp
14+
1015"""This file contains the machinery for registering and looking up what BLACS tab and
1116runviewer parser classes belong to a particular labscript device. "labscript device"
1217here means a device that BLACS needs to communicate with. These devices have
Original file line number Diff line number Diff line change 1414import threading
1515import time
1616import os
17- import imp
1817import site
1918import sysconfig
2019
20+ # deal with removal of _imp from new python
21+ try :
22+ import _imp as imp
23+ except ImportError :
24+ import imp
25+
2126
2227# Directories in which the standard library and installed packages may be located.
2328# Modules in these locations will be whitelisted:
You can’t perform that action at this time.
0 commit comments