Skip to content

Commit 53f430d

Browse files
committed
Fix assertion
1 parent 21127cc commit 53f430d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/lib/PyObjectStrAsObjectNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ static Object str(VirtualFrame frame, Object obj,
108108
Object type = getClassNode.execute(obj);
109109
Object strDescr = lookupStr.execute(frame, type, obj);
110110
// All our objects should have __str__
111-
assert strDescr != PNone.NONE;
111+
assert strDescr != PNone.NO_VALUE;
112112
Object result = callStr.executeObject(frame, strDescr, obj);
113113
if (result instanceof String || isSubtypeNode.execute(getResultClassNode.execute(result), PythonBuiltinClassType.PString)) {
114114
return result;

0 commit comments

Comments
 (0)