Python: Rewrite helper predicate has_string_type

This commit is contained in:
Rasmus Wriedt Larsen
2020-03-10 14:47:49 +01:00
parent a38fd2d3d1
commit 2382b42bbe

View File

@@ -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