Skip to content

Commit c904ba1

Browse files
authored
Merge pull request #9852 from tausbn/python-add-str-class
Python: Add `Str` class
2 parents f00a9ac + 1c15fc5 commit c904ba1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,9 @@ private string non_byte_prefix() {
616616
not result.charAt(_) in ["b", "B"]
617617
}
618618

619+
/** A string constant. This is a placeholder class -- use `StrConst` instead. */
620+
class Str = StrConst;
621+
619622
/** A string constant. */
620623
class StrConst extends Str_, ImmutableLiteral {
621624
/* syntax: "hello" */

0 commit comments

Comments
 (0)