Skip to content

Commit 71c017f

Browse files
RasmusWLyoff
andauthored
Python: Apply suggestions from code review
Co-authored-by: yoff <[email protected]>
1 parent e1c47f5 commit 71c017f

File tree

1 file changed

+1
-2
lines changed
  • python/ql/test/library-tests/frameworks/stdlib

1 file changed

+1
-2
lines changed

python/ql/test/library-tests/frameworks/stdlib/test_re.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# see https://docs.python.org/3/library/re.html#functions
99
ensure_not_tainted(
1010
# returns Match object, which is tested properly below. (note: with the flow summary
11-
# modeling, objects containing tainted values are not itself tainted).
11+
# modeling, objects containing tainted values are not themselves tainted).
1212
re.search(pat, ts),
1313
re.match(pat, ts),
1414
re.fullmatch(pat, ts),
@@ -36,7 +36,6 @@
3636
tainted_match.groupdict()["key"], # $ tainted
3737

3838
re.match(pat, ts).string, # $ tainted
39-
re.match(ts, "safe").re, # $ MISSING: tainted
4039
re.match(ts, "safe").re.pattern, # $ tainted
4140

4241
compiled_pat.match(ts).string, # $ tainted

0 commit comments

Comments
 (0)