@@ -171,8 +171,9 @@ process and user.
171171
172172.. function :: fsencode(filename)
173173
174- Encode *filename * to the filesystem encoding with ``'surrogateescape' ``
175- error handler, or ``'strict' `` on Windows; return :class: `bytes ` unchanged.
174+ Encode :term: `path-like <path-like object> ` *filename * to the filesystem
175+ encoding with ``'surrogateescape' `` error handler, or ``'strict' `` on
176+ Windows; return :class: `bytes ` unchanged.
176177
177178 :func: `fsdecode ` is the reverse function.
178179
@@ -185,8 +186,9 @@ process and user.
185186
186187.. function :: fsdecode(filename)
187188
188- Decode *filename * from the filesystem encoding with ``'surrogateescape' ``
189- error handler, or ``'strict' `` on Windows; return :class: `str ` unchanged.
189+ Decode the :term: `path-like <path-like object> ` *filename * from the
190+ filesystem encoding with ``'surrogateescape' `` error handler, or ``'strict' ``
191+ on Windows; return :class: `str ` unchanged.
190192
191193 :func: `fsencode ` is the reverse function.
192194
@@ -2003,8 +2005,8 @@ features:
20032005 control over errors, you can catch :exc: `OSError ` when calling one of the
20042006 ``DirEntry `` methods and handle as appropriate.
20052007
2006- To be directly usable as a path-like object, ``DirEntry `` implements the
2007- :class: `os.PathLike ` interface.
2008+ To be directly usable as a :term: ` path-like object ` , ``DirEntry `` implements
2009+ the :class: `os.PathLike ` interface.
20082010
20092011 Attributes and methods on a ``DirEntry `` instance are as follows:
20102012
@@ -2112,7 +2114,7 @@ features:
21122114
21132115 Note that there is a nice correspondence between several attributes
21142116 and methods of ``DirEntry `` and of :class: `pathlib.Path `. In
2115- particular, the ``name `` and `` path `` attributes have the same
2117+ particular, the ``name `` attribute has the same
21162118 meaning, as do the ``is_dir() ``, ``is_file() ``, ``is_symlink() ``
21172119 and ``stat() `` methods.
21182120
0 commit comments