Fix codegen bug

This commit is contained in:
Shunsuke Shibayama 2022-10-20 23:22:46 +09:00
parent c2e7f78b73
commit e26a89c0b3
7 changed files with 73 additions and 28 deletions

View file

@ -6,7 +6,7 @@ use std::process::Command;
use crate::serialize::get_magic_num_from_bytes;
#[cfg(unix)]
pub const BUILTIN_PYTHON_MODS: [&str; 17] = [
pub const BUILTIN_PYTHON_MODS: [&str; 18] = [
"glob",
"http",
"importlib",
@ -17,6 +17,7 @@ pub const BUILTIN_PYTHON_MODS: [&str; 17] = [
"posix",
"random",
"re",
"shutil",
"socket",
"subprocess",
"sys",
@ -26,7 +27,7 @@ pub const BUILTIN_PYTHON_MODS: [&str; 17] = [
"zipfile",
];
#[cfg(not(unix))]
pub const BUILTIN_PYTHON_MODS: [&str; 16] = [
pub const BUILTIN_PYTHON_MODS: [&str; 17] = [
"glob",
"http",
"importlib",
@ -36,6 +37,7 @@ pub const BUILTIN_PYTHON_MODS: [&str; 16] = [
"os",
"random",
"re",
"shutil",
"socket",
"subprocess",
"sys",