Skip to content

Commit 53a3380

Browse files
committed
Fix: remove incorrect shortcut for PString.
1 parent 1eb4da3 commit 53a3380

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/util/CoerceToStringNode.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444

4545
import com.oracle.graal.python.builtins.PythonBuiltinClassType;
4646
import com.oracle.graal.python.builtins.objects.floats.PFloat;
47-
import com.oracle.graal.python.builtins.objects.str.PString;
4847
import com.oracle.graal.python.nodes.PGuards;
4948
import com.oracle.graal.python.nodes.PNodeWithContext;
5049
import com.oracle.graal.python.nodes.PRaiseNode;
@@ -80,11 +79,6 @@ static String doString(String x) {
8079
return x;
8180
}
8281

83-
@Specialization
84-
static PString doPString(PString x) {
85-
return x;
86-
}
87-
8882
@Specialization
8983
static String doBoolean(boolean x) {
9084
return x ? "True" : "False";
@@ -108,7 +102,7 @@ static String doDouble(double x) {
108102
}
109103

110104
@Specialization
111-
Object doGeneric(VirtualFrame frame, Object x,
105+
static Object doGeneric(VirtualFrame frame, Object x,
112106
@Cached("create(__STR__)") LookupAndCallUnaryNode callStrNode,
113107
@Cached GetLazyClassNode getClassNode,
114108
@Cached IsSubtypeNode isSubtypeNode,

0 commit comments

Comments
 (0)