Files
codeql/python/ql/lib/change-notes/2025-10-13-fix-importerror-on-python-3.14.md
Taus c4b27d5f28 Python: Fix ImportError in imp.py under Python 3.14
It seems `_ERR_MSG` was silently removed in Python 3.14, leading to an
`ImportError` when running the extractor.

To fix this, we explicitly set `_ERR_MSG` when the existing import fails
(using `_ERR_MSG_PREFIX` which is available in Python 3.14+, along with
the bits that make up the difference between this and `_ERR_MSG`).
2025-10-13 13:50:43 +00:00

113 B

category
category
fix
  • The Python extractor no longer crashes with an ImportError when run using Python 3.14.