Skip to content

Commit 253c3b4

Browse files
committed
gh-157899: fix docs.
After changing return type of os.readlink when called with an fd from bytes to string, missed one place in the docs that needed updating.
1 parent 7b566b7 commit 253c3b4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎Modules/clinic/posixmodule.c.h‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Modules/posixmodule.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11018,7 +11018,7 @@ using it will raise a NotImplementedError.
1101811018

1101911019
On Linux, Android and MacOS, path may be a file descriptor referring to
1102011020
a symlink. If it is, dir_fd must be None, and the return value will be a
11021-
bytes object. (File descriptors for symlinks can be obtained with
11021+
string object. (File descriptors for symlinks can be obtained with
1102211022

1102311023
os.open(..., os.O_RDONLY | os.O_PATH | os.O_NOFOLLOW)
1102411024

@@ -11031,7 +11031,7 @@ on MacOS.)
1103111031

1103211032
static PyObject *
1103311033
os_readlink_impl(PyObject *module, path_t *path, int dir_fd)
11034-
/*[clinic end generated code: output=d21b732a2e814030 input=30272a2c5fba427c]*/
11034+
/*[clinic end generated code: output=d21b732a2e814030 input=eda43153b2f38ee6]*/
1103511035
{
1103611036
#if defined(HAVE_READLINK)
1103711037
char buffer[MAXPATHLEN+1];

0 commit comments

Comments
 (0)