diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-12-11 00:18:36 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-12-11 00:18:36 +0000 |
commit | 94043dc6b155345f7e39a8658a17bed3b5d61d7d (patch) | |
tree | c7d70ab684baafb9a5f129a89105856e5f4feef5 /Python/pythonrun.c | |
parent | c3ec82eb622bc9be403a6f7f5ce7674ddd66f40c (diff) | |
download | cpython-94043dc6b155345f7e39a8658a17bed3b5d61d7d.tar.gz |
Issue #25677: Correct syntax error caret for indented blocks.
Based on patch by Michael Layzell.
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 72b6c9b060..90cb2de27c 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--; } |