Skip to content

Commit 37cfb54

Browse files
committed
Python: Modernise RatioOfDefinitions
1 parent 4b3ca13 commit 37cfb54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/analysis/RatioOfDefinitions.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import DefinitionTracking
77

88
predicate want_to_have_definition(Expr e) {
99
/* not builtin object like len, tuple, etc. */
10-
not exists(Object cobj | e.refersTo(cobj) and cobj.isC()) and
10+
not exists(Value builtin | e.pointsTo(builtin) and builtin.isBuiltin()) and
1111
(
1212
e instanceof Name and e.(Name).getCtx() instanceof Load
1313
or

0 commit comments

Comments
 (0)