Skip to content

Commit adf62b2

Browse files
committed
gh-153569: preserve unterminated interactive input
1 parent be46fa5 commit adf62b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Parser/tokenizer/reader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ next_interactive(struct tok_state *tok, _PyTok_Chunk *chunk)
487487
return _PYTOK_READ_ERROR;
488488
}
489489
chunk->data = _PyTok_NormalizeNewlines(
490-
decoded.data, decoded.len, 0, 1,
490+
decoded.data, decoded.len, 0, 0,
491491
&chunk->len, &chunk->implicit_newline);
492492
_PyTok_ChunkClear(&decoded);
493493
if (chunk->data == NULL) {

0 commit comments

Comments
 (0)