Skip to content

Commit ed3ffde

Browse files
committed
Python: modules are now possibly non-unique
We should consider if this is the right way..
1 parent be506c6 commit ed3ffde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPublic.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ class ModuleVariableNode extends Node, TModuleVariableNode {
400400
override Scope getScope() { result = mod }
401401

402402
override string toString() {
403-
result = "ModuleVariableNode in " + mod.toString() + " for " + var.getId()
403+
result = "ModuleVariableNode in " + concat( | | mod.toString(), ",") + " for " + var.getId()
404404
}
405405

406406
/** Gets the module in which this variable appears. */

0 commit comments

Comments
 (0)