Skip to content

Commit 2090eeb

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

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
@@ -4494,12 +4494,13 @@ If dir_fd is not None, it should be a file descriptor open to a directory,
44944494
dir_fd may not be implemented on your platform.
44954495
If it is unavailable, using it will raise a NotImplementedError.
44964496
4497-
The mode argument is ignored on Windows.
4497+
The mode argument is ignored on Windows. Where it is used, the current umask
4498+
value is first masked out.
44984499
[clinic start generated code]*/
44994500

45004501
static PyObject *
45014502
os_mkdir_impl(PyObject *module, path_t *path, int mode, int dir_fd)
4502-
/*[clinic end generated code: output=a70446903abe821f input=e965f68377e9b1ce]*/
4503+
/*[clinic end generated code: output=a70446903abe821f input=a61722e1576fab03]*/
45034504
{
45044505
int result;
45054506
#ifdef HAVE_MKDIRAT

0 commit comments

Comments
 (0)