0
0
mirror of https://github.com/python/cpython.git synced 2024-11-30 18:51:15 +01:00

merge 3.4

This commit is contained in:
Benjamin Peterson 2016-09-18 23:43:18 -07:00
commit 57bda335e1

View File

@ -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 {