summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorAmin Alaee <mohammadamin.alaee@gmail.com>2023-09-28 15:17:30 (GMT)
committerGitHub <noreply@github.com>2023-09-28 15:17:30 (GMT)
commit7df8b16d28d2418161cef49814b6aca9fb70788d (patch)
tree5dc16d122648b8cf0f10aaa7a54cc733967b53e2 /Modules/posixmodule.c
parent3814bc17230df4cd3bc4d8e2ce0ad36470fba269 (diff)
downloadcpython-7df8b16d28d2418161cef49814b6aca9fb70788d.zip
cpython-7df8b16d28d2418161cef49814b6aca9fb70788d.tar.gz
cpython-7df8b16d28d2418161cef49814b6aca9fb70788d.tar.bz2
gh-109782: Ensure `os.path.isdir` has the same signature on all platforms (GH-109790)
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 096aa04..abf449e 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -4912,25 +4912,25 @@ os__path_splitroot_impl(PyObject *module, path_t *path)
/*[clinic input]
os._path_isdir
- path: 'O'
+ s: 'O'
Return true if the pathname refers to an existing directory.
[clinic start generated code]*/
static PyObject *
-os__path_isdir_impl(PyObject *module, PyObject *path)
-/*[clinic end generated code: output=00faea0af309669d input=b1d2571cf7291aaf]*/
+os__path_isdir_impl(PyObject *module, PyObject *s)
+/*[clinic end generated code: output=9d87ab3c8b8a4e61 input=c17f7ef21d22d64e]*/
{
HANDLE hfile;
BOOL close_file = TRUE;
FILE_BASIC_INFO info;
- path_t _path = PATH_T_INITIALIZE("isdir", "path", 0, 1);
+ path_t _path = PATH_T_INITIALIZE("isdir", "s", 0, 1);
int result;
BOOL slow_path = TRUE;
FILE_STAT_BASIC_INFORMATION statInfo;
- if (!path_converter(path, &_path)) {
+ if (!path_converter(s, &_path)) {
path_cleanup(&_path);
if (PyErr_ExceptionMatches(PyExc_ValueError)) {
PyErr_Clear();