diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-12-19 06:46:01 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-12-19 06:46:01 (GMT) |
commit | 619555d77bba05c71d9ef0a1c29ec53a17ebe2ca (patch) | |
tree | e1771befdcd8c9fbaa9b67d6830670e99873f226 /Python/pythonrun.c | |
parent | 879199ba11947d9765b06806df54566fde75d498 (diff) | |
parent | ca3263c50c3b3a3719d2ec3ee7b30b8c669dcb19 (diff) | |
download | cpython-619555d77bba05c71d9ef0a1c29ec53a17ebe2ca.zip cpython-619555d77bba05c71d9ef0a1c29ec53a17ebe2ca.tar.gz cpython-619555d77bba05c71d9ef0a1c29ec53a17ebe2ca.tar.bz2 |
Issue #25677: Merge SyntaxError caret positioning from 3.5
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index c881f90..8befa54 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -528,7 +528,7 @@ print_error_text(PyObject *f, int offset, PyObject *text_obj) offset -= (int)(nl+1-text); text = nl+1; } - while (*text == ' ' || *text == '\t') { + while (*text == ' ' || *text == '\t' || *text == '\f') { text++; offset--; } |