summaryrefslogtreecommitdiffstats
path: root/bin/SConsDoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/SConsDoc.py')
-rw-r--r--bin/SConsDoc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/SConsDoc.py b/bin/SConsDoc.py
index 0c78525..bd9c90d 100644
--- a/bin/SConsDoc.py
+++ b/bin/SConsDoc.py
@@ -826,6 +826,7 @@ else: # PY3 version, from newer pydoc
def importfile(path):
"""Import a Python source file or compiled file given its path."""
import importlib
+ from pydoc import ErrorDuringImport
magic = importlib.util.MAGIC_NUMBER
with open(path, 'rb') as file:
is_bytecode = magic == file.read(len(magic))