Skip to content

Commit cc61acd

Browse files
committed
Improve some documentation wording
1 parent 27cb819 commit cc61acd

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

Doc/library/site.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ the remaining entry points.
154154

155155
.. note::
156156

157-
While :func:`pkgutil.resolve_name` itself doesn't require the ``:callable``
158-
suffix, :file:`{name}.start` file lines require this stricter syntax.
157+
:file:`{name}.start` files invoke :func:`pkgutil.resolve_name` with
158+
``strict=True``, which requires the full ``pkg.mod:callable`` form.
159159

160160
.. versionchanged:: 3.13
161161

@@ -164,8 +164,8 @@ the remaining entry points.
164164

165165
.. deprecated-removed:: 3.15 3.20
166166

167-
:file:`{name}.pth` files in any encoding other than ``utf-8-sig`` is
168-
deprecated in Python 3.15, and support for decoding from the locale
167+
Decoding :file:`{name}.pth` files in any encoding other than ``utf-8-sig``
168+
is deprecated in Python 3.15, and support for decoding from the locale
169169
encoding will be removed in Python 3.20.
170170

171171
.. versionchanged:: 3.15
@@ -174,8 +174,8 @@ the remaining entry points.
174174
the deprecation period, such lines are still executed, but a diagnostic
175175
message is emitted when the :option:`-v` flag is given. If a
176176
:file:`{name}.start` file with the same base name exists, ``import`` lines
177-
:file:`{name}.pth` files are silently ignored. See :ref:`site-start-files`
178-
and :pep:`829`.
177+
in :file:`{name}.pth` files are silently ignored. See
178+
:ref:`site-start-files` and :pep:`829`.
179179

180180
Errors on individual lines no longer abort processing of the rest of the
181181
file. Each error is reported and the remaining lines continue to be

Lib/site.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,6 @@ def _extend_syspath():
261261
# We've already filtered out duplicates, either in the existing sys.path
262262
# or in all the .pth files we've seen. We've also abspath/normpath'd all
263263
# the entries, so all that's left to do is to ensure that the path exists.
264-
#
265-
# Return the list of paths added to maintain the *undocumented* behavior
266-
# of addpackage().
267264
for filename, dirs in _pending_syspaths.items():
268265
for dir_ in dirs:
269266
if os.path.exists(dir_):

0 commit comments

Comments
 (0)