Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typo and regenerate clinic files.
  • Loading branch information
serhiy-storchaka committed Apr 14, 2025
commit 4ba224e4e1c5c385b416173218a6bbe1eef6bc7f
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Fix :func:`os.link` on platforms (like Linux and OpenIndiana) where the
system :c:finc:`!link` function does not follow symlinks. On Linux and
system :c:func:`!link` function does not follow symlinks. On Linux and
OpenIndiana, it now follows symlinks by default and if
``follow_symlinks=True`` is specified. On Windows, it now raises error if
``follow_symlinks=True`` is passed. On macOS, it now raises error if
``follow_symlinks=False`` is passed and the system :c:finc:`!linkat`
``follow_symlinks=False`` is passed and the system :c:func:`!linkat`
function is not available at runtime.
4 changes: 2 additions & 2 deletions Modules/clinic/posixmodule.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -4341,7 +4341,7 @@ src_dir_fd, dst_dir_fd, and follow_symlinks may not be implemented on your
static PyObject *
os_link_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd,
int dst_dir_fd, int follow_symlinks)
/*[clinic end generated code: output=7f00f6007fd5269a input=f6a681a558380a15]*/
/*[clinic end generated code: output=7f00f6007fd5269a input=1d5e602d115fed7b]*/
{
#ifdef MS_WINDOWS
BOOL result = FALSE;
Expand Down
Loading