Skip to content

Commit 8418eac

Browse files
committed
Remove duplicated line
1 parent dc64e93 commit 8418eac

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Python/bltinmodule.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2586,13 +2586,14 @@ builtin_input_impl(PyObject *module, PyObject *prompt)
25862586
result = NULL;
25872587
}
25882588
else {
2589-
if (s[len-1] == '\n')
25902589
/* strip trailing '\n' */
25912590
if (s[len-1] == '\n') {
25922591
len--;
25932592
}
2594-
if (len != 0 && s[len-1] == '\r')
2595-
len--; /* strip trailing '\r' */
2593+
/* strip trailing '\r' */
2594+
if (len != 0 && s[len-1] == '\r') {
2595+
len--;
2596+
}
25962597
result = PyUnicode_Decode(s, len, stdin_encoding_str,
25972598
stdin_errors_str);
25982599
}

0 commit comments

Comments
 (0)