What changed, and why it matters
This is a trivial bug fix in a helper script used to build Electrum's download web page. The script was missing an import statement needed to access a Python utility module. Without the import, the script crashed immediately with an AttributeError. The change adds the missing import and has no security relevance.
No security action needed; treat as a normal build-script bug fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit adds import importlib.util to contrib/make_download. In some Python versions, importlib.util is not automatically available after import importlib, causing importlib.util.spec_from_file_location to raise AttributeError: module 'importlib' has no attribute 'util'. The patch resolves the crash in this non-privileged build helper script.
Changed components
contrib/make_downloadInspect captured patch +1 / −0
diff --git a/contrib/make_download b/contrib/make_download
index deb515c..57f89ea 100755
--- a/contrib/make_download
+++ b/contrib/make_download
@@ -3,6 +3,7 @@ import re
import os
import sys
import importlib
+import importlib.util
from collections import defaultdict
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.