mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
merge 3.6
This commit is contained in:
commit
cbaaed1b1a
1 changed files with 1 additions and 1 deletions
|
@ -1025,7 +1025,7 @@ tok_nextc(struct tok_state *tok)
|
|||
else {
|
||||
tok->done = E_OK;
|
||||
tok->inp = strchr(tok->buf, '\0');
|
||||
done = tok->inp[-1] == '\n';
|
||||
done = tok->inp == tok->buf || tok->inp[-1] == '\n';
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue