Corrects query to use builtin instead of special

This commit is contained in:
Rebecca Valentine
2020-02-13 14:48:46 -08:00
parent 3b45fbc87c
commit b665f54a31

View File

@@ -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'."