Skip to content

Commit 4c29f0f

Browse files
hagai-helmanJelleZijlstra
authored andcommitted
[3.10] pythongh-96288: Add a sentence to os.mkdir's docstring. (pythonGH-96271).
(cherry picked from commit 1523c9e) Co-authored-by: Hagai Helman Tov <[email protected]>
1 parent 90f2c79 commit 4c29f0f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Modules/clinic/posixmodule.c.h

Lines changed: 3 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: 3 additions & 2 deletions
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)