diff options
| author | shadchin <[email protected]> | 2024-12-23 19:39:02 +0300 |
|---|---|---|
| committer | shadchin <[email protected]> | 2024-12-23 19:54:20 +0300 |
| commit | 65a5bf9d37a3b29eb394f560b9a09318196c40e8 (patch) | |
| tree | e5cd68fb0682b2388e52d9806bb87adc348e21a8 /contrib/tools/python3/Python/future.c | |
| parent | a1dd87a52878ab3e46e5fd2dba5ecbba6113d7e0 (diff) | |
Update Python 3 to 3.12.8
commit_hash:c20045b8a987d8720e1f3328270357491d5530f3
Diffstat (limited to 'contrib/tools/python3/Python/future.c')
| -rw-r--r-- | contrib/tools/python3/Python/future.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/contrib/tools/python3/Python/future.c b/contrib/tools/python3/Python/future.c index d56f7330964..998a7f740ea 100644 --- a/contrib/tools/python3/Python/future.c +++ b/contrib/tools/python3/Python/future.c @@ -39,12 +39,20 @@ future_check_features(PyFutureFeatures *ff, stmt_ty s, PyObject *filename) } else if (strcmp(feature, "braces") == 0) { PyErr_SetString(PyExc_SyntaxError, "not a chance"); - PyErr_SyntaxLocationObject(filename, s->lineno, s->col_offset + 1); + PyErr_RangedSyntaxLocationObject(filename, + name->lineno, + name->col_offset + 1, + name->end_lineno, + name->end_col_offset + 1); return 0; } else { PyErr_Format(PyExc_SyntaxError, UNDEFINED_FUTURE_FEATURE, feature); - PyErr_SyntaxLocationObject(filename, s->lineno, s->col_offset + 1); + PyErr_RangedSyntaxLocationObject(filename, + name->lineno, + name->col_offset + 1, + name->end_lineno, + name->end_col_offset + 1); return 0; } } |
