mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: Rewrite helper predicate has_string_type
This commit is contained in:
@@ -14,9 +14,9 @@
|
||||
import python
|
||||
|
||||
predicate has_string_type(Value v) {
|
||||
v.getClass() = ClassValue::bytes() and major_version() = 2
|
||||
v.getClass() = ClassValue::str()
|
||||
or
|
||||
v.getClass() = ClassValue::unicode()
|
||||
v.getClass() = ClassValue::unicode() and major_version() = 2
|
||||
}
|
||||
|
||||
from
|
||||
|
||||
Reference in New Issue
Block a user