summaryrefslogtreecommitdiffstats
path: root/Parser/pegen_errors.c
diff options
context:
space:
mode:
authorPaul m. p. Peny <mail.peny@free.fr>2022-07-16 08:35:19 (GMT)
committerGitHub <noreply@github.com>2022-07-16 08:35:19 (GMT)
commitbbb2ab70b6d42c097dc35caa4d816ff7476d6554 (patch)
treed059c5f883e5f50ace274bebca7a134a529443ac /Parser/pegen_errors.c
parent7502af888f1571150be708da6a8de294e9453a34 (diff)
downloadcpython-bbb2ab70b6d42c097dc35caa4d816ff7476d6554.zip
cpython-bbb2ab70b6d42c097dc35caa4d816ff7476d6554.tar.gz
cpython-bbb2ab70b6d42c097dc35caa4d816ff7476d6554.tar.bz2
[3.11] bpo-14916: interactive fd is not tied to stdin [type-bug] (#91469)
* bpo-14916: interactive fd is not always stdin related to https://github.com/python/cpython/pull/31006 merged bugfix following https://bugs.python.org/issue14916 * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Diffstat (limited to 'Parser/pegen_errors.c')
-rw-r--r--Parser/pegen_errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/pegen_errors.c b/Parser/pegen_errors.c
index 5703088..c87d50a 100644
--- a/Parser/pegen_errors.c
+++ b/Parser/pegen_errors.c
@@ -245,7 +245,7 @@ get_error_line_from_tokenizer_buffers(Parser *p, Py_ssize_t lineno)
* (multi-line) statement are stored in p->tok->interactive_src_start.
* If not, we're parsing from a string, which means that the whole source
* is stored in p->tok->str. */
- assert((p->tok->fp == NULL && p->tok->str != NULL) || p->tok->fp == stdin);
+ assert((p->tok->fp == NULL && p->tok->str != NULL) || p->tok->fp != NULL);
char *cur_line = p->tok->fp_interactive ? p->tok->interactive_src_start : p->tok->str;
if (cur_line == NULL) {