Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2382b42

Browse files
committed
Python: Rewrite helper predicate has_string_type
1 parent a38fd2d commit 2382b42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/ql/src/Statements/IterableStringOrSequence.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
import python
1515

1616
predicate has_string_type(Value v) {
17-
v.getClass() = ClassValue::bytes() and major_version() = 2
17+
v.getClass() = ClassValue::str()
1818
or
19-
v.getClass() = ClassValue::unicode()
19+
v.getClass() = ClassValue::unicode() and major_version() = 2
2020
}
2121

2222
from

0 commit comments

Comments
 (0)