Merge pull request #20908 from akoeplinger/patch-1

Fix KeyError: 'name' in python/extractor/imp.py on Python 3.14
This commit is contained in:
Taus
2025-11-27 15:29:54 +01:00
committed by GitHub
3 changed files with 7 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ try:
from importlib._bootstrap import _ERR_MSG
except ImportError:
from importlib._bootstrap import _ERR_MSG_PREFIX
_ERR_MSG = _ERR_MSG_PREFIX + '{name!r}'
_ERR_MSG = _ERR_MSG_PREFIX + '{!r}'
from importlib import machinery
from importlib import util

View File

@@ -10,7 +10,7 @@ from io import BytesIO
#Semantic version of extractor.
#Update this if any changes are made
VERSION = "7.1.5"
VERSION = "7.1.6"
PY_EXTENSIONS = ".py", ".pyw"

View File

@@ -0,0 +1,5 @@
---
category: fix
---
- Fixed a bug in the Python extractor's import handling where failing to find an import in `find_module` would cause a `KeyError` to be raised. (Contributed by @akoeplinger.)