File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/capsule Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 4040 */
4141package com .oracle .graal .python .builtins .objects .capsule ;
4242
43+ import com .oracle .graal .python .builtins .objects .cext .capi .CExtNodesFactory .FromCharPointerNodeGen ;
44+ import com .oracle .graal .python .nodes .util .CastToTruffleStringNode ;
4345import com .oracle .truffle .api .CompilerDirectives .TruffleBoundary ;
4446import com .oracle .truffle .api .interop .InteropLibrary ;
4547import com .oracle .truffle .api .interop .TruffleObject ;
4648import com .oracle .truffle .api .library .ExportLibrary ;
4749import com .oracle .truffle .api .library .ExportMessage ;
48- import com .oracle .truffle .api .strings .TruffleString ;
4950
5051@ ExportLibrary (InteropLibrary .class )
5152public final class PyCapsule implements TruffleObject {
@@ -92,7 +93,7 @@ public String toDisplayString(@SuppressWarnings("unused") boolean allowSideEffec
9293 String quote , n ;
9394 if (name != null ) {
9495 quote = "\" " ;
95- n = "<unknown>" ;
96+ n = CastToTruffleStringNode . getUncached (). execute ( FromCharPointerNodeGen . getUncached (). execute ( name )). toJavaStringUncached () ;
9697 } else {
9798 quote = "" ;
9899 n = "NULL" ;
You can’t perform that action at this time.
0 commit comments