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:
commit
57bda335e1
@ -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…
Reference in New Issue
Block a user