From 265a1d5dd617f7b242cb2c6f11a28a110e44cf82 Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Wed, 11 Dec 2024 17:18:53 +0000 Subject: [PATCH] PEP-765: rewrote two sentences as proposed by Jeff Glass --- peps/pep-0765.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peps/pep-0765.rst b/peps/pep-0765.rst index 9d06d251434..0ac26aa28f1 100644 --- a/peps/pep-0765.rst +++ b/peps/pep-0765.rst @@ -91,7 +91,7 @@ when a ``return``, ``break`` or ``continue`` would transfer control flow from within a ``finally`` block to a location outside of it. -This includes the following examples: +These examples may emit a ``SyntaxWarning`` or ``SyntaxError``: .. code-block:: :class: bad @@ -108,7 +108,7 @@ This includes the following examples: finally: break # (or continue) -But excludes these: +These examples would not emit the warning or error: .. code-block:: :class: good