Skip to content

Commit bd8bc6f

Browse files
committed
Removing unnecessary prepending OSError class as argument.
1 parent 4db46b3 commit bd8bc6f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/PNodeWithContext.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,11 @@ public final PException raiseOSError(VirtualFrame frame, OSErrorEnum oserror, St
146146
return raiseOSError(frame, args);
147147
}
148148

149-
public final PException raiseOSError(VirtualFrame frame, Object[] arg) {
149+
public final PException raiseOSError(VirtualFrame frame, Object[] args) {
150150
if (callNode == null) {
151151
CompilerDirectives.transferToInterpreterAndInvalidate();
152152
callNode = insert(CallVarargsMethodNode.create());
153153
}
154-
Object[] args = PositionalArgumentsNode.prependArgument(getBuiltinPythonClass(PythonBuiltinClassType.OSError), arg, arg.length);
155154
PBaseException error = (PBaseException) callNode.execute(frame, getBuiltinPythonClass(PythonBuiltinClassType.OSError), args, new PKeyword[]{});
156155
return raise(error);
157156
}

0 commit comments

Comments
 (0)