Skip to content

Commit 3c3f9a2

Browse files
miss-islingtontavallaiemerwokferdnyc
authored
[3.13] gh-90437: Fix __main__.py documentation wording (GH-116309) (#121385)
gh-90437: Fix __main__.py documentation wording (GH-116309) (cherry picked from commit cb688ba) Co-authored-by: Ali Tavallaie <[email protected]> Co-authored-by: Éric <[email protected]> Co-authored-by: Frank Dana <[email protected]>
1 parent abefbcb commit 3c3f9a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/__main__.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ attribute will include the package's path if imported::
251251
>>> asyncio.__main__.__name__
252252
'asyncio.__main__'
253253

254-
This won't work for ``__main__.py`` files in the root directory of a .zip file
255-
though. Hence, for consistency, minimal ``__main__.py`` like the :mod:`venv`
256-
one mentioned below are preferred.
254+
This won't work for ``__main__.py`` files in the root directory of a
255+
``.zip`` file though. Hence, for consistency, a minimal ``__main__.py``
256+
without a ``__name__`` check is preferred.
257257

258258
.. seealso::
259259

0 commit comments

Comments
 (0)