Skip to content

Commit 64b1aea

Browse files
committed
Python: Shorten toString for module vars
1 parent 0aa632d commit 64b1aea

File tree

5 files changed

+118
-118
lines changed

5 files changed

+118
-118
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
@@ -332,7 +332,7 @@ class ModuleVariableNode extends Node, TModuleVariableNode {
332332
override Scope getScope() { result = mod }
333333

334334
override string toString() {
335-
result = "ModuleVariableNode for " + var.toString() + " in " + mod.toString()
335+
result = "ModuleVariableNode for " + mod.getName() + "." + var.getId()
336336
}
337337

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

0 commit comments

Comments
 (0)