Skip to content

Commit ad8d2ef

Browse files
pythongh-100472: Fix docs claim that compileall parameters could be bytes (pythonGH-100473)
(cherry picked from commit 046cbc2) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
1 parent ecbf136 commit ad8d2ef

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Doc/library/compileall.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Public functions
198198

199199
The *stripdir*, *prependdir* and *limit_sl_dest* arguments correspond to
200200
the ``-s``, ``-p`` and ``-e`` options described above.
201-
They may be specified as ``str``, ``bytes`` or :py:class:`os.PathLike`.
201+
They may be specified as ``str`` or :py:class:`os.PathLike`.
202202

203203
If *hardlink_dupes* is true and two ``.pyc`` files with different optimization
204204
level have the same content, use hard links to consolidate duplicate files.
@@ -268,7 +268,7 @@ Public functions
268268

269269
The *stripdir*, *prependdir* and *limit_sl_dest* arguments correspond to
270270
the ``-s``, ``-p`` and ``-e`` options described above.
271-
They may be specified as ``str``, ``bytes`` or :py:class:`os.PathLike`.
271+
They may be specified as ``str`` or :py:class:`os.PathLike`.
272272

273273
If *hardlink_dupes* is true and two ``.pyc`` files with different optimization
274274
level have the same content, use hard links to consolidate duplicate files.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove claim in documentation that the ``stripdir``, ``prependdir`` and ``limit_sl_dest`` parameters of :func:`compileall.compile_dir` and :func:`compileall.compile_file` could be :class:`bytes`.

0 commit comments

Comments
 (0)