https://github.com/python/cpython/commit/13d9b0c1c4805bfc30c6d156271e59d5ec59d25f
commit: 13d9b0c1c4805bfc30c6d156271e59d5ec59d25f
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: pablogsal <[email protected]>
date: 2025-12-14T22:35:54Z
summary:

[3.13] gh-142724: fix error path in `_PyPegen_raise_tokenizer_init_error` 
(GH-142725) (#142727)

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 d692d6b0c86446..b5e7b12b93c089 100644
--- a/Parser/pegen_errors.c
+++ b/Parser/pegen_errors.c
@@ -35,7 +35,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]

Reply via email to