]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100472: Fix docs claim that compileall parameters could be bytes (GH-100473)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 24 Dec 2022 20:29:41 +0000 (12:29 -0800)
committerGitHub <noreply@github.com>
Sat, 24 Dec 2022 20:29:41 +0000 (12:29 -0800)
(cherry picked from commit 046cbc2080360b0b0bbe6ea7554045a6bbbd94bd)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Doc/library/compileall.rst
Misc/NEWS.d/next/Documentation/2022-12-23-21-42-26.gh-issue-100472.NNixfO.rst [new file with mode: 0644]

index de34664acb84ab7d815c8525f918fe748ac6f21b..b020b71dea5f4f7f580f23fdb24f5f78e16a7742 100644 (file)
@@ -198,7 +198,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.
@@ -268,7 +268,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.
diff --git a/Misc/NEWS.d/next/Documentation/2022-12-23-21-42-26.gh-issue-100472.NNixfO.rst b/Misc/NEWS.d/next/Documentation/2022-12-23-21-42-26.gh-issue-100472.NNixfO.rst
new file mode 100644 (file)
index 0000000..4f41621
--- /dev/null
@@ -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`.