Skip to content

Commit fb1e993

Browse files
authored
Merge pull request github#2963 from BekaValentine/python-objectapi-to-valueapi-advancedformatting
Python: ObjectAPI to ValueAPI: AdvancedFormatting
2 parents 0d76c71 + 8e1c089 commit fb1e993

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python/ql/src/Expressions/Formatting/AdvancedFormatting.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ private predicate brace_pair(PossibleAdvancedFormatString fmt, int start, int en
107107
private predicate advanced_format_call(Call format_expr, PossibleAdvancedFormatString fmt, int args) {
108108
exists(CallNode call |
109109
call = format_expr.getAFlowNode() |
110-
call.getFunction().refersTo(Object::builtin("format")) and call.getArg(0).refersTo(_, fmt.getAFlowNode()) and
110+
call.getFunction().pointsTo(Value::named("format")) and call.getArg(0).pointsTo(_, fmt.getAFlowNode()) and
111111
args = count(format_expr.getAnArg()) - 1
112112
or
113-
call.getFunction().(AttrNode).getObject("format").refersTo(_, fmt.getAFlowNode()) and
113+
call.getFunction().(AttrNode).getObject("format").pointsTo(_, fmt.getAFlowNode()) and
114114
args = count(format_expr.getAnArg())
115115
)
116116
}
@@ -139,4 +139,3 @@ class AdvancedFormattingCall extends Call {
139139
}
140140

141141
}
142-

0 commit comments

Comments
 (0)