Skip to content

Commit 0c358ac

Browse files
authored
Merge pull request #20908 from akoeplinger/patch-1
Fix KeyError: 'name' in python/extractor/imp.py on Python 3.14
2 parents 0896be0 + f55ff96 commit 0c358ac

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

python/extractor/imp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from importlib._bootstrap import _ERR_MSG
2626
except ImportError:
2727
from importlib._bootstrap import _ERR_MSG_PREFIX
28-
_ERR_MSG = _ERR_MSG_PREFIX + '{name!r}'
28+
_ERR_MSG = _ERR_MSG_PREFIX + '{!r}'
2929

3030
from importlib import machinery
3131
from importlib import util

python/extractor/semmle/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#Semantic version of extractor.
1212
#Update this if any changes are made
13-
VERSION = "7.1.5"
13+
VERSION = "7.1.6"
1414

1515
PY_EXTENSIONS = ".py", ".pyw"
1616

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
category: fix
3+
---
4+
5+
- 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.)

0 commit comments

Comments
 (0)