summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-12-19 06:46:01 +0000
committerMartin Panter <vadmium+py@gmail.com>2016-12-19 06:46:01 +0000
commit42ba543f18789c526c888607b74fee4309ccfcc3 (patch)
treebddc6c6c19d95c8a6bc2dabc6dce873d70d10d70 /Python/pythonrun.c
parentd2131b6bd33e17101ba57b4ace0b2c6e3e104b3e (diff)
parent94043dc6b155345f7e39a8658a17bed3b5d61d7d (diff)
downloadcpython-42ba543f18789c526c888607b74fee4309ccfcc3.tar.gz
Issue #25677: Merge SyntaxError caret positioning from 3.5
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 c881f901ab..8befa546a9 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--;
}