@@ -30,6 +30,7 @@ pub mod socket;
30
30
mod string;
31
31
#[ cfg( feature = "rustpython-compiler" ) ]
32
32
mod symtable;
33
+ #[ cfg( not( target_arch = "wasm32" ) ) ]
33
34
mod thread;
34
35
mod time_module;
35
36
#[ cfg( feature = "rustpython-parser" ) ]
@@ -89,7 +90,6 @@ pub fn get_module_inits() -> HashMap<String, StdlibInitFunc> {
89
90
"_random" . to_owned( ) => Box :: new( random:: make_module) ,
90
91
"_string" . to_owned( ) => Box :: new( string:: make_module) ,
91
92
"_struct" . to_owned( ) => Box :: new( pystruct:: make_module) ,
92
- "_thread" . to_owned( ) => Box :: new( thread:: make_module) ,
93
93
"time" . to_owned( ) => Box :: new( time_module:: make_module) ,
94
94
"_weakref" . to_owned( ) => Box :: new( weakref:: make_module) ,
95
95
"_imp" . to_owned( ) => Box :: new( imp:: make_module) ,
@@ -130,6 +130,7 @@ pub fn get_module_inits() -> HashMap<String, StdlibInitFunc> {
130
130
#[ cfg( feature = "ssl" ) ]
131
131
modules. insert ( "_ssl" . to_owned ( ) , Box :: new ( ssl:: make_module) ) ;
132
132
modules. insert ( "_subprocess" . to_owned ( ) , Box :: new ( subprocess:: make_module) ) ;
133
+ modules. insert ( "_thread" . to_owned ( ) , Box :: new ( thread:: make_module) ) ;
133
134
#[ cfg( not( target_os = "redox" ) ) ]
134
135
modules. insert ( "zlib" . to_owned ( ) , Box :: new ( zlib:: make_module) ) ;
135
136
modules. insert (
0 commit comments