mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 20:34:44 +00:00
Fix codegen bug
This commit is contained in:
parent
c2e7f78b73
commit
e26a89c0b3
7 changed files with 73 additions and 28 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue