mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Adds rough modernization.
This commit is contained in:
@@ -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'."
|
||||
|
||||
Reference in New Issue
Block a user