@@ -28,28 +28,28 @@ pub fn get_module_inits() -> HashMap<String, StdlibInitFunc> {
2828 let mut modules = HashMap :: new ( ) ;
2929 modules. insert (
3030 "ast" . to_string ( ) ,
31- Box :: new ( ast:: mk_module ) as StdlibInitFunc ,
31+ Box :: new ( ast:: make_module ) as StdlibInitFunc ,
3232 ) ;
33- modules. insert ( "dis" . to_string ( ) , Box :: new ( dis:: mk_module ) ) ;
34- modules. insert ( "json" . to_string ( ) , Box :: new ( json:: mk_module ) ) ;
35- modules. insert ( "keyword" . to_string ( ) , Box :: new ( keyword:: mk_module ) ) ;
36- modules. insert ( "math" . to_string ( ) , Box :: new ( math:: mk_module ) ) ;
37- modules. insert ( "platform" . to_string ( ) , Box :: new ( platform:: mk_module ) ) ;
38- modules. insert ( "re" . to_string ( ) , Box :: new ( re:: mk_module ) ) ;
39- modules. insert ( "random" . to_string ( ) , Box :: new ( random:: mk_module ) ) ;
40- modules. insert ( "string" . to_string ( ) , Box :: new ( string:: mk_module ) ) ;
41- modules. insert ( "struct" . to_string ( ) , Box :: new ( pystruct:: mk_module ) ) ;
42- modules. insert ( "time" . to_string ( ) , Box :: new ( time_module:: mk_module ) ) ;
43- modules. insert ( "tokenize" . to_string ( ) , Box :: new ( tokenize:: mk_module ) ) ;
44- modules. insert ( "types" . to_string ( ) , Box :: new ( types:: mk_module ) ) ;
45- modules. insert ( "_weakref" . to_string ( ) , Box :: new ( weakref:: mk_module ) ) ;
33+ modules. insert ( "dis" . to_string ( ) , Box :: new ( dis:: make_module ) ) ;
34+ modules. insert ( "json" . to_string ( ) , Box :: new ( json:: make_module ) ) ;
35+ modules. insert ( "keyword" . to_string ( ) , Box :: new ( keyword:: make_module ) ) ;
36+ modules. insert ( "math" . to_string ( ) , Box :: new ( math:: make_module ) ) ;
37+ modules. insert ( "platform" . to_string ( ) , Box :: new ( platform:: make_module ) ) ;
38+ modules. insert ( "re" . to_string ( ) , Box :: new ( re:: make_module ) ) ;
39+ modules. insert ( "random" . to_string ( ) , Box :: new ( random:: make_module ) ) ;
40+ modules. insert ( "string" . to_string ( ) , Box :: new ( string:: make_module ) ) ;
41+ modules. insert ( "struct" . to_string ( ) , Box :: new ( pystruct:: make_module ) ) ;
42+ modules. insert ( "time" . to_string ( ) , Box :: new ( time_module:: make_module ) ) ;
43+ modules. insert ( "tokenize" . to_string ( ) , Box :: new ( tokenize:: make_module ) ) ;
44+ modules. insert ( "types" . to_string ( ) , Box :: new ( types:: make_module ) ) ;
45+ modules. insert ( "_weakref" . to_string ( ) , Box :: new ( weakref:: make_module ) ) ;
4646
4747 // disable some modules on WASM
4848 #[ cfg( not( target_arch = "wasm32" ) ) ]
4949 {
50- modules. insert ( "io" . to_string ( ) , Box :: new ( io:: mk_module ) ) ;
51- modules. insert ( "os" . to_string ( ) , Box :: new ( os:: mk_module ) ) ;
52- modules. insert ( "socket" . to_string ( ) , Box :: new ( socket:: mk_module ) ) ;
50+ modules. insert ( "io" . to_string ( ) , Box :: new ( io:: make_module ) ) ;
51+ modules. insert ( "os" . to_string ( ) , Box :: new ( os:: make_module ) ) ;
52+ modules. insert ( "socket" . to_string ( ) , Box :: new ( socket:: make_module ) ) ;
5353 }
5454
5555 modules
0 commit comments