Skip to content

Commit adc119a

Browse files
authored
remove os.listvolumes as well
1 parent 28e13ae commit adc119a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Remove :func:`os.listdrives` in non windows desktop builds since they don't support this feature
1+
Remove :func:`os.listdrives` and :func:`os.listvolumes` in non windows desktop builds
2+
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
@@ -4749,7 +4749,7 @@ os_listdrives_impl(PyObject *module)
47494749

47504750
#endif /* MS_WINDOWS_DESKTOP || MS_WINDOWS_SYSTEM */
47514751

4752-
#ifdef MS_WINDOWS
4752+
#if defined(MS_WINDOWS_APP) || defined(MS_WINDOWS_SYSTEM)
47534753

47544754
/*[clinic input]
47554755
os.listvolumes
@@ -4812,6 +4812,9 @@ os_listvolumes_impl(PyObject *module)
48124812
return result;
48134813
}
48144814

4815+
#endif /* MS_WINDOWS_APP || MS_WINDOWS_SYSTEM */
4816+
4817+
#ifdef MS_WINDOWS
48154818

48164819
/*[clinic input]
48174820
os.listmounts

0 commit comments

Comments
 (0)