Skip to content

Commit a682556

Browse files
committed
[GR-70811] Fix PE in TextIOWrapperNodes.CheckClosedNode
PullRequest: graalpython/4059
2 parents d1de6d9 + 6bde9ef commit a682556

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/io/TextIOWrapperNodes.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,10 @@ static void error(@SuppressWarnings("unused") PTextIO self,
183183
static void checkGeneric(VirtualFrame frame, PTextIO self,
184184
@Bind Node inliningTarget,
185185
@Cached PyObjectGetAttr getAttr,
186-
@Cached PyObjectIsTrueNode isTrueNode,
187-
@Cached PRaiseNode raiseNode) {
186+
@Cached PyObjectIsTrueNode isTrueNode) {
188187
Object res = getAttr.execute(frame, inliningTarget, self.getBuffer(), T_CLOSED);
189188
if (isTrueNode.execute(frame, res)) {
190-
error(self, raiseNode);
189+
error(self, inliningTarget);
191190
}
192191
}
193192
}

0 commit comments

Comments
 (0)