Skip to content

Commit 194994a

Browse files
authored
remove os.listmounts as well
1 parent fca55c3 commit 194994a

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Remove :func:`os.listdrives` and :func:`os.listvolumes` in non windows desktop builds
2-
since the underlying functionality
1+
Remove :func:`os.listdrives`, :func:`os.listvolumes` and :func:`os.listmounts`
2+
in non windows desktop builds since the underlying functionality

Modules/clinic/posixmodule.c.h

Lines changed: 2 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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4814,7 +4814,7 @@ os_listvolumes_impl(PyObject *module)
48144814

48154815
#endif /* MS_WINDOWS_APP || MS_WINDOWS_SYSTEM */
48164816

4817-
#ifdef MS_WINDOWS
4817+
#if defined(MS_WINDOWS_DESKTOP) || defined(MS_WINDOWS_SYSTEM)
48184818

48194819
/*[clinic input]
48204820
os.listmounts
@@ -4895,6 +4895,9 @@ os_listmounts_impl(PyObject *module, path_t *volume)
48954895
return result;
48964896
}
48974897

4898+
#endif /* MS_WINDOWS_DESKTOP || MS_WINDOWS_SYSTEM */
4899+
4900+
#ifdef MS_WINDOWS
48984901

48994902
/*[clinic input]
49004903
os._path_isdevdrive

0 commit comments

Comments
 (0)