Merge pull request #2840 from BekaValentine/python-objectapi-to-valueapi-useofapply

Python: ObjectAPI to ValueAPI: UseofApply
This commit is contained in:
Taus
2020-03-02 21:40:35 +01:00
committed by GitHub
7 changed files with 101 additions and 2 deletions

View File

@@ -10,8 +10,8 @@
*/
import python
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"))
where major_version() = 2 and call.getFunction() = func and func.pointsTo(Value::named("apply"))
select call, "Call to the obsolete builtin function 'apply'."