Skip to content

Commit

Permalink
[3.11] gh-96288: Add a sentence to os.mkdir's docstring. (GH-96271). (
Browse files Browse the repository at this point in the history
#98065)

(cherry picked from commit 1523c9e)

Co-authored-by: Hagai Helman Tov <hagai.helman@gmail.com>
  • Loading branch information
JelleZijlstra and hagai-helman authored Oct 8, 2022
1 parent 52dab90 commit 1573211
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 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.

5 changes: 3 additions & 2 deletions Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -4560,12 +4560,13 @@ If dir_fd is not None, it should be a file descriptor open to a directory,
dir_fd may not be implemented on your platform.
If it is unavailable, using it will raise a NotImplementedError.
The mode argument is ignored on Windows.
The mode argument is ignored on Windows. Where it is used, the current umask
value is first masked out.
[clinic start generated code]*/

static PyObject *
os_mkdir_impl(PyObject *module, path_t *path, int mode, int dir_fd)
/*[clinic end generated code: output=a70446903abe821f input=e965f68377e9b1ce]*/
/*[clinic end generated code: output=a70446903abe821f input=a61722e1576fab03]*/
{
int result;
#ifdef HAVE_MKDIRAT
Expand Down

0 comments on commit 1573211

Please sign in to comment.