File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ mod symtable;
40
40
mod sysconfigdata;
41
41
#[ cfg( feature = "threading" ) ]
42
42
mod thread;
43
- mod time_module ;
43
+ mod time ;
44
44
mod unicodedata;
45
45
mod warnings;
46
46
mod weakref;
@@ -126,7 +126,7 @@ pub fn get_module_inits() -> StdlibMap {
126
126
"_sre" => sre:: make_module,
127
127
"_string" => string:: make_module,
128
128
"_struct" => pystruct:: make_module,
129
- "time" => time_module :: make_module,
129
+ "time" => time :: make_module,
130
130
"_weakref" => weakref:: make_module,
131
131
"_imp" => imp:: make_module,
132
132
"unicodedata" => unicodedata:: make_module,
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ fn sec_to_timeval(sec: f64) -> timeval {
150
150
151
151
#[ pymodule( name = "select" ) ]
152
152
mod decl {
153
- use super :: super :: time_module ;
153
+ use super :: super :: time ;
154
154
use super :: * ;
155
155
use crate :: exceptions:: IntoPyException ;
156
156
use crate :: function:: OptionalOption ;
@@ -175,7 +175,7 @@ mod decl {
175
175
return Err ( vm. new_value_error ( "timeout must be positive" . to_owned ( ) ) ) ;
176
176
}
177
177
}
178
- let deadline = timeout. map ( |s| time_module :: get_time ( ) + s) ;
178
+ let deadline = timeout. map ( |s| time :: get_time ( ) + s) ;
179
179
180
180
let seq2set = |list| -> PyResult < ( Vec < Selectable > , FdSet ) > {
181
181
let v = vm. extract_elements :: < Selectable > ( list) ?;
@@ -214,7 +214,7 @@ mod decl {
214
214
vm. check_signals ( ) ?;
215
215
216
216
if let Some ( ref mut timeout) = timeout {
217
- * timeout = deadline. unwrap ( ) - time_module :: get_time ( ) ;
217
+ * timeout = deadline. unwrap ( ) - time :: get_time ( ) ;
218
218
if * timeout < 0.0 {
219
219
r. clear ( ) ;
220
220
w. clear ( ) ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments