Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/extractor/imp.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
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
Expand Down
2 changes: 1 addition & 1 deletion python/extractor/semmle/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#Semantic version of extractor.
#Update this if any changes are made
VERSION = "7.1.5"
VERSION = "7.1.6"

PY_EXTENSIONS = ".py", ".pyw"

Expand Down
Original file line number Diff line number Diff line change
@@ -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.)