mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
gh-100472: Fix docs claim that compileall parameters could be bytes (#100473)
This commit is contained in:
parent
efccd04b9e
commit
046cbc2080
2 changed files with 3 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue