mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
Fix KeyError: 'name' in python/extractor/imp.py on Python 3.14
Follow-up to https://github.com/github/codeql/pull/20630 The fix didn't fully work since when we raise the ImportError in `find_module` we don't pass a named argument into the format string which causes a `KeyError`. We need to use a format string without named arguments, like Python 3.13 and earlier did.
This commit is contained in:
committed by
GitHub
parent
1c2d8bb70e
commit
458f8570e8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user