mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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.)
|
||||
Reference in New Issue
Block a user