Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf801fa8

Browse files
gh-100472: Fix docs claim that compileall parameters could be bytes (GH-100473)
(cherry picked from commit046cbc2)Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
1 parent714a93f commitf801fa8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎Doc/library/compileall.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Public functions
199199

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

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

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

274274
If *hardlink_dupes* is true and two ``.pyc`` files with different optimization
275275
level have the same content, use hard links to consolidate duplicate files.
Lines changed: 1 addition & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp