We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
isUnicode
1 parent bab461f commit 81246cdCopy full SHA for 81246cd
python/ql/lib/semmle/python/Exprs.qll
@@ -627,6 +627,10 @@ deprecated class StrConst = StringLiteral;
627
/** A string constant. */
628
class StringLiteral extends Str_, ImmutableLiteral {
629
/* syntax: "hello" */
630
+ /**
631
+ * Holds if this string is a unicode string, either by default (e.g. if Python 3), or with an
632
+ * explicit prefix.
633
+ */
634
predicate isUnicode() {
635
this.getPrefix() = unicode_prefix()
636
or
0 commit comments