Skip to content

Commit 81246cd

Browse files
committed
Python: Add missing QLDoc for isUnicode
1 parent bab461f commit 81246cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/ql/lib/semmle/python/Exprs.qll

+4
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,10 @@ deprecated class StrConst = StringLiteral;
627627
/** A string constant. */
628628
class StringLiteral extends Str_, ImmutableLiteral {
629629
/* 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+
*/
630634
predicate isUnicode() {
631635
this.getPrefix() = unicode_prefix()
632636
or

0 commit comments

Comments
 (0)