mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 11:14:38 +08:00
Call the _os module posix on minor platforms
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -927,7 +927,7 @@ fn to_seconds_from_unix_epoch(sys_time: SystemTime) -> f64 {
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
#[pymodule(name = "posix")]
|
||||
#[pymodule]
|
||||
mod posix {
|
||||
use super::*;
|
||||
|
||||
@@ -2452,7 +2452,7 @@ use nt as platform;
|
||||
pub use nt::{_set_thread_local_invalid_parameter_handler, silent_iph_handler};
|
||||
|
||||
#[cfg(not(any(unix, windows)))]
|
||||
#[pymodule(name = "_os")]
|
||||
#[pymodule(name = "posix")]
|
||||
mod minor {
|
||||
use super::*;
|
||||
|
||||
|
||||
Reference in new issue
Block a user