Adds rough modernization.

This commit is contained in:
Rebecca Valentine
2020-02-13 14:22:00 -08:00
parent 5269fb713f
commit 3b45fbc87c

View File

@@ -10,8 +10,10 @@
*/
import python
private import semmle.python.objects.TObject
private import semmle.python.types.Builtins
from CallNode call, ControlFlowNode func
where
major_version() = 2 and call.getFunction() = func and func.refersTo(Object::builtin("apply"))
major_version() = 2 and call.getFunction() = func and func.pointsTo(TBuiltinFunctionObject(Builtin::special("apply")))
select call, "Call to the obsolete builtin function 'apply'."