Commit 9524eed
committed
deviceserver: replace use of imp (deprecated) with importlib.
The imp package is deprecated since Python 3.4. Since we are now
dependent on at least Python 3.5, we can replace it with importlib.
In addition to stop using deprecated functionality, this change means
that reading the config no longer injects modules into sys.modules
(imp.load_source caused a microscope.config module to be added to
sys.modules).1 parent a16bef0 commit 9524eed
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
355 | 362 | | |
356 | | - | |
| 363 | + | |
357 | 364 | | |
358 | 365 | | |
359 | 366 | | |
| |||
0 commit comments