Files
codeql/python/ql/lib/change-notes/2022-05-12-moduleimport-disallow-dots.md
Rasmus Wriedt Larsen 3844c5b5c0 Python: Add change-note
2022-05-12 13:32:59 +02:00

421 B

category
category
breaking

API::moduleImport no longer has any results for dotted names, such as API::moduleImport("foo.bar"). Using API::moduleImport("foo.bar").getMember("baz").getACall() previously worked if the Python code was from foo.bar import baz; baz(), but not if the code was import foo.bar; foo.bar.baz() -- we are making this change to ensure the approach that can handle all cases is always used.