diff --git a/IPython/core/guarded_eval.py b/IPython/core/guarded_eval.py index d576a2a769d..5d405b2208e 100644 --- a/IPython/core/guarded_eval.py +++ b/IPython/core/guarded_eval.py @@ -444,7 +444,7 @@ def eval_node(node: Union[ast.AST, None], context: EvaluationContext): - control flow: - conditionals (``if x:``) except for ternary IfExp (``a if x else b``) - - loops (``for`` and `while``) + - loops (``for`` and ``while``) - exception handling The purpose of this function is to guard against unwanted side-effects;