Skip to content

Commit

Permalink
gh-100472: Fix docs claim that compileall parameters could be bytes (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja authored Dec 24, 2022
1 parent efccd04 commit 046cbc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/compileall.rst
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ Public functions

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

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

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

If *hardlink_dupes* is true and two ``.pyc`` files with different optimization
level have the same content, use hard links to consolidate duplicate files.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +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 comments on commit 046cbc2

Please sign in to comment.