Skip to content

Commit 1573211

Browse files
[3.11] gh-96288: Add a sentence to os.mkdir's docstring. (GH-96271). (#98065)
(cherry picked from commit 1523c9e) Co-authored-by: Hagai Helman Tov <[email protected]>
1 parent 52dab90 commit 1573211

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Modules/clinic/posixmodule.c.h

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/posixmodule.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -4560,12 +4560,13 @@ If dir_fd is not None, it should be a file descriptor open to a directory,
45604560
dir_fd may not be implemented on your platform.
45614561
If it is unavailable, using it will raise a NotImplementedError.
45624562
4563-
The mode argument is ignored on Windows.
4563+
The mode argument is ignored on Windows. Where it is used, the current umask
4564+
value is first masked out.
45644565
[clinic start generated code]*/
45654566

45664567
static PyObject *
45674568
os_mkdir_impl(PyObject *module, path_t *path, int mode, int dir_fd)
4568-
/*[clinic end generated code: output=a70446903abe821f input=e965f68377e9b1ce]*/
4569+
/*[clinic end generated code: output=a70446903abe821f input=a61722e1576fab03]*/
45694570
{
45704571
int result;
45714572
#ifdef HAVE_MKDIRAT

0 commit comments

Comments
 (0)