@@ -29,7 +29,6 @@ mod tokenize;
2929mod unicodedata;
3030mod warnings;
3131mod weakref;
32- mod zlib;
3332use std:: collections:: HashMap ;
3433
3534use crate :: vm:: VirtualMachine ;
@@ -44,6 +43,8 @@ mod pwd;
4443pub mod signal;
4544#[ cfg( not( target_arch = "wasm32" ) ) ]
4645mod subprocess;
46+ #[ cfg( not( target_arch = "wasm32" ) ) ]
47+ mod zlib;
4748
4849use crate :: pyobject:: PyObjectRef ;
4950
@@ -73,7 +74,6 @@ pub fn get_module_inits() -> HashMap<String, StdlibInitFunc> {
7374 "_imp" . to_string( ) => Box :: new( imp:: make_module) ,
7475 "unicodedata" . to_string( ) => Box :: new( unicodedata:: make_module) ,
7576 "_warnings" . to_string( ) => Box :: new( warnings:: make_module) ,
76- "zlib" . to_string( ) => Box :: new( zlib:: make_module) ,
7777 } ;
7878
7979 // Insert parser related modules:
@@ -101,6 +101,7 @@ pub fn get_module_inits() -> HashMap<String, StdlibInitFunc> {
101101 modules. insert ( "socket" . to_string ( ) , Box :: new ( socket:: make_module) ) ;
102102 modules. insert ( "signal" . to_string ( ) , Box :: new ( signal:: make_module) ) ;
103103 modules. insert ( "subprocess" . to_string ( ) , Box :: new ( subprocess:: make_module) ) ;
104+ modules. insert ( "zlib" . to_string ( ) , Box :: new ( zlib:: make_module) ) ;
104105 }
105106
106107 // Unix-only
0 commit comments