Skip to content

Commit 2ba614a

Browse files
committed
Remove ShellExecute changes
1 parent 2791915 commit 2ba614a

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

Modules/posixmodule.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15230,7 +15230,6 @@ os_abort_impl(PyObject *module)
1523015230
}
1523115231

1523215232
#ifdef MS_WINDOWS
15233-
#ifdef MS_WINDOWS_DESKTOP
1523415233
/* Grab ShellExecute dynamically from shell32 */
1523515234
static int has_ShellExecute = -1;
1523615235
static HINSTANCE (CALLBACK *Py_ShellExecuteW)(HWND, LPCWSTR, LPCWSTR, LPCWSTR,
@@ -15259,7 +15258,6 @@ check_ShellExecute(void)
1525915258
}
1526015259
return has_ShellExecute;
1526115260
}
15262-
#endif // MS_WINDOWS_DESKTOP
1526315261

1526415262

1526515263
/*[clinic input]
@@ -15304,9 +15302,6 @@ os_startfile_impl(PyObject *module, path_t *filepath,
1530415302
path_t *cwd, int show_cmd)
1530515303
/*[clinic end generated code: output=1c6f2f3340e31ffa input=8248997b80669622]*/
1530615304
{
15307-
#if defined(MS_WINDOWS_APP) && !defined(MS_WINDOWS_DESKTOP)
15308-
return PyErr_Format(PyExc_NotImplementedError, "startfile not available on UWP");
15309-
#else
1531015305
HINSTANCE rc;
1531115306

1531215307
if(!check_ShellExecute()) {
@@ -15335,7 +15330,6 @@ os_startfile_impl(PyObject *module, path_t *filepath,
1533515330
return NULL;
1533615331
}
1533715332
Py_RETURN_NONE;
15338-
#endif
1533915333
}
1534015334
#endif /* MS_WINDOWS */
1534115335

0 commit comments

Comments
 (0)