@@ -96,7 +96,7 @@ PyDoc_STRVAR(os_access__doc__,
9696"Use the real uid/gid to test for access to a path.\n"
9797"\n"
9898" path\n"
99- " Path to be tested; can be string, bytes, or open-file-descriptor int. \n"
99+ " Path to be tested; can be string or bytes \n"
100100" mode\n"
101101" Operating-system mode bitfield. Can be F_OK to test existence,\n"
102102" or the inclusive-OR of R_OK, W_OK, and X_OK.\n"
@@ -132,7 +132,7 @@ os_access(PyObject *module, PyObject *args, PyObject *kwargs)
132132{
133133 PyObject * return_value = NULL ;
134134 static char * _keywords [] = {"path" , "mode" , "dir_fd" , "effective_ids" , "follow_symlinks" , NULL };
135- path_t path = PATH_T_INITIALIZE ("access" , "path" , 0 , 1 );
135+ path_t path = PATH_T_INITIALIZE ("access" , "path" , 0 , 0 );
136136 int mode ;
137137 int dir_fd = DEFAULT_DIR_FD ;
138138 int effective_ids = 0 ;
@@ -5784,4 +5784,4 @@ os_set_handle_inheritable(PyObject *module, PyObject *args)
57845784#ifndef OS_SET_HANDLE_INHERITABLE_METHODDEF
57855785 #define OS_SET_HANDLE_INHERITABLE_METHODDEF
57865786#endif /* !defined(OS_SET_HANDLE_INHERITABLE_METHODDEF) */
5787- /*[clinic end generated code: output=c27221987f987cf3 input=a9049054013a1b77]*/
5787+ /*[clinic end generated code: output=9d5f831b23145d1e input=a9049054013a1b77]*/
0 commit comments