Skip to content

Commit 1c15fc5

Browse files
committed
Python: Define Str as an alias of StrConst
1 parent bde4783 commit 1c15fc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,10 +617,10 @@ private string non_byte_prefix() {
617617
}
618618

619619
/** A string constant. This is a placeholder class -- use `StrConst` instead. */
620-
class Str extends Str_ { }
620+
class Str = StrConst;
621621

622622
/** A string constant. */
623-
class StrConst extends Str, ImmutableLiteral {
623+
class StrConst extends Str_, ImmutableLiteral {
624624
/* syntax: "hello" */
625625
predicate isUnicode() {
626626
this.getPrefix() = unicode_prefix()

0 commit comments

Comments
 (0)