Skip to content

Commit a65ba21

Browse files
committed
gh-148588: Remove em dashes from __lazy_modules__ docs
1 parent f4a8366 commit a65ba21

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/reference/simple_stmts.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -937,9 +937,9 @@ sequence of absolute module name strings. Any regular (non-``lazy``)
937937
:keyword:`lazy` keyword had been used.
938938

939939
This provides a way to enable lazy loading for specific dependencies without
940-
changing individual ``import`` statementsuseful when supporting Python
941-
versions older than 3.15 while leveraging lazy imports on 3.15+, or when
942-
the imports are generated programmatically::
940+
changing individual ``import`` statements. This is useful when supporting
941+
Python versions older than 3.15 while leveraging lazy imports on 3.15+, or
942+
when the imports are generated programmatically::
943943

944944
__lazy_modules__ = ["json", "pathlib"]
945945

Doc/whatsnew/3.15.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ function, class body, or ``try``/``except``/``finally`` block raises a
182182
(``lazy from module import *`` and ``lazy from __future__ import ...`` both
183183
raise :exc:`SyntaxError`).
184184

185-
For code that cannot use the ``lazy`` keyword directly for example, when
185+
For code that cannot use the ``lazy`` keyword directly (for example, when
186186
supporting Python versions older than 3.15 while still leveraging lazy
187-
imports on 3.15+ a module can define
187+
imports on 3.15+), a module can define
188188
:attr:`~module.__lazy_modules__` as a sequence of absolute module name
189189
strings. Regular ``import`` statements for those modules are then treated
190190
as lazy, with the same semantics as the ``lazy`` keyword::

0 commit comments

Comments
 (0)