mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: Correctly locate stores to built-ins
This commit is contained in:
@@ -422,7 +422,7 @@ module API {
|
||||
*/
|
||||
private predicate possible_builtin_defined_in_module(string name, Module m) {
|
||||
exists(NameNode n |
|
||||
n.isGlobal() and
|
||||
not exists(LocalVariable v | n.defines(v)) and
|
||||
n.isStore() and
|
||||
name = n.getId() and
|
||||
name = builtin_name() and
|
||||
|
||||
Reference in New Issue
Block a user