Skip to content

Commit 3158906

Browse files
committed
Python: dict only has one positional argument
1 parent 62509a1 commit 3158906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/lib/semmle/python/frameworks/Stdlib.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4219,7 +4219,7 @@ module StdlibPrivate {
42194219

42204220
override predicate propagatesFlow(string input, string output, boolean preservesValue) {
42214221
exists(DataFlow::DictionaryElementContent dc, string key | key = dc.getKey() |
4222-
input = "Argument[0..].DictionaryElement[" + key + "]" and
4222+
input = "Argument[0].DictionaryElement[" + key + "]" and
42234223
output = "ReturnValue.DictionaryElement[" + key + "]" and
42244224
preservesValue = true
42254225
)

0 commit comments

Comments
 (0)