mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Corrects query to use builtin instead of special
This commit is contained in:
@@ -15,5 +15,5 @@ private import semmle.python.types.Builtins
|
||||
|
||||
from CallNode call, ControlFlowNode func
|
||||
where
|
||||
major_version() = 2 and call.getFunction() = func and func.pointsTo(TBuiltinFunctionObject(Builtin::special("apply")))
|
||||
select call, "Call to the obsolete builtin function 'apply'."
|
||||
major_version() = 2 and call.getFunction() = func and func.pointsTo(TBuiltinFunctionObject(Builtin::builtin("apply")))
|
||||
select call, "Call to the obsolete builtin function 'apply'."
|
||||
Reference in New Issue
Block a user