Skip to content

Commit 2254e69

Browse files
3v1n0martinpitt
authored andcommitted
mockobject: Explicitly import importlib util module
In some distributions it may not be possible to use the submodule otherwise, as in current debian unstable: Python 3.9.7 (default, Sep 24 2021, 09:43:00) [GCC 10.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import importlib >>> importlib.util Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'importlib' has no attribute 'util'
1 parent 872a7e3 commit 2254e69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dbusmock/mockobject.py

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import copy
1414
import importlib
15+
import importlib.util
1516
import os
1617
import sys
1718
import time

0 commit comments

Comments
 (0)