Skip to content

Commit 6ce1b9f

Browse files
committed
Python: Fix use of StrConst.strValue()
1 parent 32c8dd0 commit 6ce1b9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/Variables/UndefinedExport.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ predicate contains_unknown_import_star(ModuleValue m) {
5959
from ModuleValue m, StrConst name, string exported_name
6060
where
6161
declaredInAll(m.getScope(), name) and
62-
exported_name = name.strValue() and
62+
exported_name = name.getText() and
6363
not m.hasAttribute(exported_name) and
6464
not is_exported_submodule_name(m, exported_name) and
6565
not contains_unknown_import_star(m) and

0 commit comments

Comments
 (0)