summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/ast.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 353514c8c6..fafa25310b 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -401,6 +401,9 @@ set_context(expr_ty e, expr_context_ty ctx, const node *n)
case Repr_kind:
expr_name = "repr";
break;
+ case IfExp_kind:
+ expr_name = "conditional expression";
+ break;
default:
PyErr_Format(PyExc_SystemError,
"unexpected expression in assignment %d (line %d)",