https://github.com/python/cpython/commit/bf4f5087043d8ea16ce868894bd0b9dedcf1ab3a commit: bf4f5087043d8ea16ce868894bd0b9dedcf1ab3a branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: pablogsal <[email protected]> date: 2025-12-14T21:49:30Z summary:
[3.14] gh-142724: fix error path in `_PyPegen_raise_tokenizer_init_error` (GH-142725) (#142726) Co-authored-by: AZero13 <[email protected]> files: M Parser/pegen_errors.c diff --git a/Parser/pegen_errors.c b/Parser/pegen_errors.c index 0639a4e42436be..1c61524d60a1af 100644 --- a/Parser/pegen_errors.c +++ b/Parser/pegen_errors.c @@ -43,7 +43,7 @@ _PyPegen_raise_tokenizer_init_error(PyObject *filename) tuple = PyTuple_Pack(2, errstr, tmp); Py_DECREF(tmp); - if (!value) { + if (!tuple) { goto error; } PyErr_SetObject(PyExc_SyntaxError, tuple); _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
