summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-12-11 00:18:36 +0000
committerMartin Panter <vadmium+py@gmail.com>2016-12-11 00:18:36 +0000
commit94043dc6b155345f7e39a8658a17bed3b5d61d7d (patch)
treec7d70ab684baafb9a5f129a89105856e5f4feef5 /Python/pythonrun.c
parentc3ec82eb622bc9be403a6f7f5ce7674ddd66f40c (diff)
downloadcpython-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.c2
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--;
}