Skip to content

Commit d99ec91

Browse files
msimacektimfel
authored andcommitted
Fix calling peek
1 parent 037f945 commit d99ec91

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/io

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ PBytes readline(VirtualFrame frame, Object self, int limit,
422422
while (limit < 0 || buffer.size() < limit) {
423423
int nreadahead = 1;
424424
if (hasPeek.profile(peek != PNone.NO_VALUE)) {
425-
Object readahead = callPeek.execute(frame, peek, self, 1);
425+
Object readahead = callPeek.execute(frame, peek, 1);
426426
// TODO _PyIO_trap_eintr [GR-23297]
427427
if (isBytes.profile(!(readahead instanceof PBytes))) {
428428
throw raise(OSError, S_SHOULD_RETURN_BYTES_NOT_P, "peek()", readahead);

0 commit comments

Comments
 (0)