Skip to content

Commit 626d3fd

Browse files
committed
Fix PBuiltinFunction#toString not to use context
1 parent 327846c commit 626d3fd

File tree

1 file changed

+1
-5
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/function

1 file changed

+1
-5
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/function/PBuiltinFunction.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,7 @@ public Object getEnclosingType() {
130130
@Override
131131
public String toString() {
132132
CompilerAsserts.neverPartOfCompilation();
133-
if (enclosingType == null) {
134-
return String.format("PBuiltinFunction %s at 0x%x", name, hashCode());
135-
} else {
136-
return String.format("PBuiltinFunction %s.%s at 0x%x", GetNameNode.doSlowPath(enclosingType), name, hashCode());
137-
}
133+
return String.format("PBuiltinFunction %s at 0x%x", qualname, hashCode());
138134
}
139135

140136
public PBuiltinFunction boundToObject(PythonBuiltinClassType klass, PythonObjectFactory factory) {

0 commit comments

Comments
 (0)